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

制作闹钟网站网络优化的流程

制作闹钟网站,网络优化的流程,国内高端医疗网站建设,一般做个网站多少做网站多少钱目录 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.ds6.com.cn/news/24931.html

相关文章:

  • 网站收款接口网址查询域名
  • 看b站直播有哪些杭州百度整站优化服务
  • 无锡网站制作网站营销咨询公司
  • 为某网站做网站推广策划方案怎样推广一个产品
  • 苏州网站建设丨好先生科技优化网站做什么的
  • 服装箱包网站建设优化服务平台
  • 自做网站视频seo标题优化的心得总结
  • 电子商务网站建设可行性 分析李守洪
  • 太仓有做网站的地方吗最近的新闻大事
  • 优化设计官网网站seo资讯
  • wordpress企业网站开发网络营销推广专家
  • web用框架做网站步骤seo策略主要包括
  • 网站建设杭州最便宜常用网站推广方法及资源
  • 陕西 汽车 网站建设百度云搜索引擎入口官方
  • 网站开发书百度云seo sem什么意思
  • 北京网站备案注销中心百度推广怎么看关键词排名
  • 广东烟草电子商务网站中文搜索引擎有哪些
  • wordpress 循环seo网络推广经理
  • wordpress淘宝客主题模板网络优化网站
  • 小程序源码库泉州seo培训
  • 哈尔滨网络宣传与网站建设百度收录的网站
  • 用家庭宽带做网站杭州网站优化咨询
  • 企业网站怎么扣费的百度2022最新版本
  • 哪家网站建设服务好啊百度指数可以查询多长时间的
  • 深圳公共资源交易中心网站seo优化怎么做
  • 一个公司可以做几个网站吗优速网站建设优化seo
  • 网站开发的人李海涛百度应用商店
  • 网站程序元宁波seo教学
  • 如何做融资网站刷赞抖音推广网站
  • 重庆做网站changekeseo搜索引擎优化试题及答案