From c8eca2cf5a906d6f1a1e2e0b32e32d7e2200d307 Mon Sep 17 00:00:00 2001 From: JEFF Date: Sun, 19 Jan 2025 16:58:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=8B=E5=BC=8F0119?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git_test/Form1.Designer.cs | 28 +++++++++++++++++--- git_test/Form1.cs | 5 ++++ git_test/Form1.resx | 54 +++++++++++++++++++------------------- 3 files changed, 56 insertions(+), 31 deletions(-) diff --git a/git_test/Form1.Designer.cs b/git_test/Form1.Designer.cs index 88b4080..dae399f 100644 --- a/git_test/Form1.Designer.cs +++ b/git_test/Form1.Designer.cs @@ -28,12 +28,32 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; + button1 = new Button(); + SuspendLayout(); + // + // button1 + // + button1.Location = new Point(201, 104); + button1.Name = "button1"; + button1.Size = new Size(112, 34); + button1.TabIndex = 0; + button1.Text = "button1"; + button1.UseVisualStyleBackColor = true; + button1.Click += button1_Click; + // + // Form1 + // + AutoScaleDimensions = new SizeF(11F, 23F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Controls.Add(button1); + Name = "Form1"; + Text = "Form1"; + ResumeLayout(false); } #endregion + + private Button button1; } } diff --git a/git_test/Form1.cs b/git_test/Form1.cs index 0ec6d3d..8fde729 100644 --- a/git_test/Form1.cs +++ b/git_test/Form1.cs @@ -6,5 +6,10 @@ namespace git_test { InitializeComponent(); } + + private void button1_Click(object sender, EventArgs e) + { + + } } } diff --git a/git_test/Form1.resx b/git_test/Form1.resx index 1af7de1..8b2ff64 100644 --- a/git_test/Form1.resx +++ b/git_test/Form1.resx @@ -1,17 +1,17 @@  -