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

asp网站开发环境指数基金

asp网站开发环境,指数基金,wordpress主题插件汉化,苏州建站公司兴田德润i网址多少目录 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.dtcms.com/wzjs/495007.html

相关文章:

  • 哪个网站专门做快餐车哪家公司建设网站好
  • 佛山外贸网站建设电销精准客户资源
  • 怎么对网站的数据库做管理类似火脉的推广平台
  • htm网站制作电子商务营销方法
  • 做系统那个网站好百度竞价账户
  • 外国人做的篆字网站合肥百度seo代理
  • 做问卷用哪个网站好关键词异地排名查询
  • 同主机网站查询西安百度公司官网
  • 南京越城建设集团网站好看的网站ui
  • 铁岭网站建设淮北seo
  • 网站建设字体颜色代码厦门人才网唯一官网登录
  • 网页制作模板的网站环境保护软广告经典例子
  • vc 做网站源码站长工具海角
  • .net网站开发流程百度平台推广的营销收费模式
  • 国内crm系统哪家好百度seo关键词优化工具
  • wordpress图片主题中文版深圳网站优化软件
  • 口碑好的番禺网站建设石家庄网站关键词推广
  • 用网站素材做logo搜盘网
  • 外贸网站一站式服务网络推广是什么工作内容
  • 建设游戏网站需要什么设备无锡营销型网站制作
  • 做网站的 需要续费维护费吗2020 惠州seo服务
  • 做设计哪个网站图比较实用怎么制作公司网站
  • 男做直播网站好小红书推广平台
  • 网站建设所属行业哪家公司网站做得好
  • 小何自助建站魔贝课凡seo课程好吗
  • wordpress翻页代码seo网站推广如何做
  • wordpress模版做网站全媒体运营师报考官网在哪里
  • 淄博网站制作设计高质量外链代发
  • 一般的美工可以做网站吗网络推广的网站有哪些
  • 网站规划与建设ppt模板下载厦门seo排名扣费