当前位置: 首页 > news >正文

365元做网站网站开发在线浏览pdf

365元做网站,网站开发在线浏览pdf,东莞专业网站设计专业服务,做新浪微博网站需要目录 1 结论 2 项目结构 3 项目代码 1 结论 新建C#工程来说,Trae的Chat比DeepSeek的Coder好用。 2 项目结构 MyWinFormsApp/ │ ├── Program.cs ├── Form1.cs ├── Form1.Designer.cs ├── MyResources/ │ └── MyResources.resx └── MyWin…

目录

1 结论

2 项目结构

3  项目代码


1 结论

新建C#工程来说,Trae的Chat比DeepSeek的Coder好用。

2 项目结构

MyWinFormsApp/

├── Program.cs
├── Form1.cs
├── Form1.Designer.cs
├── MyResources/
│   └── MyResources.resx
└── MyWinFormsApp.csproj

3  项目代码

根据AI提示反复迭代修改这几个文件,可以实现C#窗口程序的生成。

//Form1.csusing System;
using System.Windows.Forms;namespace MyWinFormsApp
{public partial class Form1 : Form{public Form1(){InitializeComponent();}private void Form1_Load(object sender, EventArgs e){// 使用 .resx 文件中的资源this.Text = MyWinFormsApp.MyResources.FormTitle;label1.Text = MyWinFormsApp.MyResources.WelcomeMessage;}}
}

//Form1.Designer.cs
namespace MyWinFormsApp
{partial class Form1{private System.ComponentModel.IContainer components = null;private System.Windows.Forms.Label label1;protected override void Dispose(bool disposing){if (disposing && (components != null)){components.Dispose();}base.Dispose(disposing);}private void InitializeComponent(){this.label1 = new System.Windows.Forms.Label();this.SuspendLayout();// // label1// this.label1.AutoSize = true;this.label1.Location = new System.Drawing.Point(100, 100);this.label1.Name = "label1";this.label1.Size = new System.Drawing.Size(100, 20);this.label1.TabIndex = 0;// // Form1// this.ClientSize = new System.Drawing.Size(300, 200);this.Controls.Add(this.label1);this.Name = "Form1";this.Load += new System.EventHandler(this.Form1_Load);this.ResumeLayout(false);this.PerformLayout();}}
}

//MyWinFormsApp.csproj
<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>WinExe</OutputType><TargetFramework>net9.0-windows</TargetFramework><Nullable>enable</Nullable><UseWindowsForms>true</UseWindowsForms><EnableDefaultEmbeddedResourceItems>false</EnableDefaultEmbeddedResourceItems><EnableDefaultCompileItems>false</EnableDefaultCompileItems></PropertyGroup><ItemGroup><EmbeddedResource Include="MyResources\MyResources.resx"><Generator>PublicResXFileCodeGenerator</Generator><LastGenOutput>MyResources.Designer.cs</LastGenOutput></EmbeddedResource><Compile Include="Form1.cs" /><Compile Include="Form1.Designer.cs" /><Compile Include="Program.cs" /><Compile Include="MyResources\MyResources.Designer.cs"><DependentUpon>MyResources.resx</DependentUpon><AutoGen>True</AutoGen><DesignTime>True</DesignTime></Compile></ItemGroup>
</Project>

//Program.cs
using System;
using System.Windows.Forms;namespace MyWinFormsApp
{static class Program{[STAThread]static void Main(){Application.EnableVisualStyles();Application.SetCompatibleTextRenderingDefault(false);Application.Run(new Form1());}}
}

//MyResources/MyResources.Designer.cs
namespace MyWinFormsApp {using System;[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")][global::System.Diagnostics.DebuggerNonUserCodeAttribute()][global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]public class MyResources {private static global::System.Resources.ResourceManager resourceMan;private static global::System.Globalization.CultureInfo resourceCulture;[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]internal MyResources() {}[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]public static global::System.Resources.ResourceManager ResourceManager {get {if (object.ReferenceEquals(resourceMan, null)) {global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MyWinFormsApp.MyResources.MyResources", typeof(MyResources).Assembly);resourceMan = temp;}return resourceMan;}}[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]public static global::System.Globalization.CultureInfo Culture {get {return resourceCulture;}set {resourceCulture = value;}}public static string FormTitle {get {return ResourceManager.GetString("FormTitle", resourceCulture);}}public static string WelcomeMessage {get {return ResourceManager.GetString("WelcomeMessage", resourceCulture);}}}
}
//MyResources/MyResources.resx<?xml version="1.0" encoding="utf-8"?>
<root><xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"><xsd:element name="root" msdata:IsDataSet="true"><xsd:complexType><xsd:choice maxOccurs="unbounded"><xsd:element name="data"><xsd:complexType><xsd:sequence><xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /><xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /></xsd:sequence><xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /><xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /><xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /></xsd:complexType></xsd:element></xsd:choice></xsd:complexType></xsd:element></xsd:schema><data name="FormTitle" xml:space="preserve"><value>我的窗体应用</value></data><data name="WelcomeMessage" xml:space="preserve"><value>欢迎使用!</value></data>
</root>

http://www.yayakq.cn/news/962147/

相关文章:

  • 网站首页网址应该有对应的域名泰安住房和城乡建设局网站
  • 怎样用eclipse做网站主机宝怎么设置网站主页
  • php网站开发实例教程百度长治做网站多少钱
  • html5网站怎么建设后台怎么弄百度做网站引流
  • 授权购买网站网站建设精英
  • 免费行情软件app网站红色页面做的比较炫酷的网站
  • 沈阳沈阳建设工程信息网站wordpress如何发布视频
  • 个人网站设计的意义响应式网站搭建
  • 虚拟主机搭建多个网站简易app制作
  • 公司网站发布流程广东省南粤交通投资建设有限公司网站
  • 网站建设要用到编程吗网站建设合同书注意事项
  • 重庆网站建设 沛宣怎么查一个网站是否备案
  • 做网站分为哪些功能的网站网络营销的概念及特征
  • 网站动画用什么做lnmp wordpress 后台没有主题
  • 上海做淘宝网站建设住房与城乡建设部网站
  • 晋城网络公司做网站的深圳市手机网站建设怎么样
  • 做企业网站 长春建设银行企业网站失败
  • 网站特色怎么写中小企业网站积木式搭建
  • 网站搜索dw制作班级网站
  • 网站建设申请书产品营销策划方案3000字
  • 新手如何自己做网站微信小程序官网首页登录入口
  • 购物网站开发方案wordpress 工单插件
  • 新塘做网站公司婚纱摄影网站html
  • p2p网站建设公司排名创意图案设计网站
  • 网站怎么做聚合网站分成比例系统怎么做
  • 如何做网站推广赚钱网络服务能力
  • 在厦门做网站找谁怎么创建属于自己的平台
  • php做的网站论文北京网站改版费用
  • 任务网站开发线上推广有哪些方式
  • 江苏商城网站建设服务在线ps照片处理手机版