Skip to content

Commit

Permalink
update AboutForm
Browse files Browse the repository at this point in the history
  • Loading branch information
thantthet committed Jan 24, 2020
1 parent b740635 commit dc6fef6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 20 deletions.
21 changes: 11 additions & 10 deletions windows/Editor/kEditor/aboutForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions windows/Editor/kEditor/aboutForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions windows/Editor/kEditor/aboutForm.resx
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="textBox1.Text" xml:space="preserve">
<value>Copyright (C) 2008 KeyMagic Project
Expand Down
10 changes: 5 additions & 5 deletions windows/Editor/kEditor/kEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="aboutForm.cs">
<Compile Include="AboutForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="aboutForm.Designer.cs">
<DependentUpon>aboutForm.cs</DependentUpon>
<Compile Include="AboutForm.Designer.cs">
<DependentUpon>AboutForm.cs</DependentUpon>
</Compile>
<Compile Include="ConfigColor.cs">
<SubType>Form</SubType>
Expand Down Expand Up @@ -131,8 +131,8 @@
<DependentUpon>TesterForm.cs</DependentUpon>
</Compile>
<Compile Include="UnicodeData.cs" />
<EmbeddedResource Include="aboutForm.resx">
<DependentUpon>aboutForm.cs</DependentUpon>
<EmbeddedResource Include="AboutForm.resx">
<DependentUpon>AboutForm.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="ConfigColor.resx">
Expand Down
2 changes: 1 addition & 1 deletion windows/Editor/kEditor/mainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit dc6fef6

Please sign in to comment.