diff options
Diffstat (limited to 'NotePad')
| -rw-r--r-- | NotePad/NotePad/Form1.Designer.cs | 10 | ||||
| -rw-r--r-- | NotePad/NotePad/Form1.cs | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/NotePad/NotePad/Form1.Designer.cs b/NotePad/NotePad/Form1.Designer.cs index 6e310b3..2b0e1db 100644 --- a/NotePad/NotePad/Form1.Designer.cs +++ b/NotePad/NotePad/Form1.Designer.cs @@ -1,6 +1,6 @@ namespace NotePad { - partial class Form1 + partial class NotePad { /// <summary> /// Required designer variable. @@ -30,14 +30,16 @@ { this.SuspendLayout(); // - // Form1 + // NotePad // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(584, 411); - this.Name = "Form1"; + this.KeyPreview = true; + this.Name = "NotePad"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Form1"; + this.Text = "记事本"; + this.Load += new System.EventHandler(this.NotePad_Load); this.ResumeLayout(false); } diff --git a/NotePad/NotePad/Form1.cs b/NotePad/NotePad/Form1.cs index f1b7b5e..f8dfc1a 100644 --- a/NotePad/NotePad/Form1.cs +++ b/NotePad/NotePad/Form1.cs @@ -10,12 +10,16 @@ using System.Windows.Forms; namespace NotePad { - public partial class Form1 : Form + public partial class NotePad : Form { - public Form1() + public NotePad() { InitializeComponent(); } + private void NotePad_Load(object sender, EventArgs e) + { + + } } } |
