diff --git a/windows/Editor/kEditor/aboutForm.Designer.cs b/windows/Editor/kEditor/aboutForm.Designer.cs index 98911d7..e2f7f55 100644 --- a/windows/Editor/kEditor/aboutForm.Designer.cs +++ b/windows/Editor/kEditor/aboutForm.Designer.cs @@ -1,6 +1,6 @@ namespace kEditor { - partial class aboutForm + partial class AboutForm { /// /// Required designer variable. @@ -28,7 +28,7 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(aboutForm)); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutForm)); this.btnOK = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.lblTitle = new System.Windows.Forms.Label(); @@ -44,7 +44,7 @@ private void InitializeComponent() // btnOK // this.btnOK.Location = new System.Drawing.Point(636, 675); - this.btnOK.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + this.btnOK.Margin = new System.Windows.Forms.Padding(6); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(150, 44); this.btnOK.TabIndex = 0; @@ -55,7 +55,7 @@ private void InitializeComponent() // textBox1 // this.textBox1.Location = new System.Drawing.Point(24, 285); - this.textBox1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + this.textBox1.Margin = new System.Windows.Forms.Padding(6); this.textBox1.Multiline = true; this.textBox1.Name = "textBox1"; this.textBox1.ReadOnly = true; @@ -92,7 +92,7 @@ private void InitializeComponent() this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBox1.Image = global::kEditor.Properties.Resources.Logo; this.pictureBox1.Location = new System.Drawing.Point(24, 42); - this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + this.pictureBox1.Margin = new System.Windows.Forms.Padding(6); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(104, 100); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; @@ -105,10 +105,11 @@ private void InitializeComponent() this.linkLabel1.Location = new System.Drawing.Point(204, 217); this.linkLabel1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0); this.linkLabel1.Name = "linkLabel1"; - this.linkLabel1.Size = new System.Drawing.Size(345, 25); + this.linkLabel1.Size = new System.Drawing.Size(204, 25); this.linkLabel1.TabIndex = 5; this.linkLabel1.TabStop = true; - this.linkLabel1.Text = "http://code.google.com/p/keymagic"; + this.linkLabel1.Text = "https://keymagic.net"; + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // label2 // @@ -140,7 +141,7 @@ private void InitializeComponent() this.label4.TabIndex = 8; this.label4.Text = "Thant Thet Khin Zaw"; // - // aboutForm + // AboutForm // this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 25F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -155,10 +156,10 @@ private void InitializeComponent() this.Controls.Add(this.textBox1); this.Controls.Add(this.btnOK); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6); + this.Margin = new System.Windows.Forms.Padding(6); this.MaximizeBox = false; this.MinimizeBox = false; - this.Name = "aboutForm"; + this.Name = "AboutForm"; this.ShowIcon = false; this.Text = "About KMS Editor"; ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); diff --git a/windows/Editor/kEditor/aboutForm.cs b/windows/Editor/kEditor/aboutForm.cs index 81f4ef0..d4f6951 100644 --- a/windows/Editor/kEditor/aboutForm.cs +++ b/windows/Editor/kEditor/aboutForm.cs @@ -9,9 +9,9 @@ namespace kEditor { - public partial class aboutForm : Form + public partial class AboutForm : Form { - public aboutForm() + public AboutForm() { InitializeComponent(); lblTitle.Text = AssemblyTitle + " " + AssemblyVersion; @@ -22,6 +22,12 @@ private void btnOK_Click(object sender, EventArgs e) this.Close(); } + private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + var label = sender as Label; + System.Diagnostics.Process.Start(label.Text); + } + #region Assembly Attribute Accessors public string AssemblyTitle diff --git a/windows/Editor/kEditor/aboutForm.resx b/windows/Editor/kEditor/aboutForm.resx index 804a04e..29fca51 100644 --- a/windows/Editor/kEditor/aboutForm.resx +++ b/windows/Editor/kEditor/aboutForm.resx @@ -112,10 +112,10 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Copyright (C) 2008 KeyMagic Project diff --git a/windows/Editor/kEditor/kEditor.csproj b/windows/Editor/kEditor/kEditor.csproj index 6788def..1e8994e 100644 --- a/windows/Editor/kEditor/kEditor.csproj +++ b/windows/Editor/kEditor/kEditor.csproj @@ -83,11 +83,11 @@ - + Form - - aboutForm.cs + + AboutForm.cs Form @@ -131,8 +131,8 @@ TesterForm.cs - - aboutForm.cs + + AboutForm.cs Designer diff --git a/windows/Editor/kEditor/mainForm.cs b/windows/Editor/kEditor/mainForm.cs index b355f6a..31f74bb 100644 --- a/windows/Editor/kEditor/mainForm.cs +++ b/windows/Editor/kEditor/mainForm.cs @@ -834,7 +834,7 @@ private bool CheckSyntax(string filePath) private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { - aboutForm aboutF = new aboutForm(); + AboutForm aboutF = new AboutForm(); aboutF.ShowDialog(this); }