Crypto-Notepad/Crypto Notepad/AboutFrom.cs

81 lines
2.3 KiB
C#
Raw Normal View History

2016-01-07 15:00:49 +00:00
using System;
using System.Diagnostics;
using System.Windows.Forms;
2016-01-09 20:46:25 +00:00
namespace Crypto_Notepad
2016-01-07 15:00:49 +00:00
{
public partial class AboutFrom : Form
{
public AboutFrom()
{
InitializeComponent();
}
2019-08-28 09:03:26 +00:00
/*Form Events*/
2016-01-07 15:00:49 +00:00
private void AboutWindow_Load(object sender, EventArgs e)
{
Version vrs = new Version(Application.ProductVersion);
2019-10-29 18:28:15 +00:00
appVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
2016-01-07 15:00:49 +00:00
}
private void AboutFrom_Click(object sender, EventArgs e)
2016-01-10 12:28:43 +00:00
{
2019-10-29 18:28:15 +00:00
appLogoPictureBox.Focus();
2016-01-10 12:28:43 +00:00
}
protected override bool ProcessDialogKey(Keys keyData)
{
if (ModifierKeys == Keys.None && keyData == Keys.Escape)
{
Close();
return true;
}
return base.ProcessDialogKey(keyData);
}
/*Form Events*/
2016-01-10 12:28:43 +00:00
/*Main Information*/
2019-10-29 18:28:15 +00:00
private void AppVersionLabel_Click(object sender, EventArgs e)
2016-01-10 12:28:43 +00:00
{
2019-01-02 19:10:41 +00:00
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes");
2016-01-07 15:00:49 +00:00
}
2016-01-15 16:13:33 +00:00
2019-10-29 18:28:15 +00:00
private void AppInfoLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
2016-01-15 16:13:33 +00:00
{
Process.Start("https://sigmanor.github.io/");
2016-01-15 16:13:33 +00:00
}
2019-10-29 18:28:15 +00:00
private void AppInfoLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
2018-02-17 12:47:21 +00:00
{
2019-01-02 19:10:41 +00:00
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE");
2018-02-17 12:47:21 +00:00
}
2019-10-29 18:28:15 +00:00
private void AppInfoLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
2018-02-17 12:47:21 +00:00
{
2019-01-02 19:10:41 +00:00
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad");
2018-02-17 12:47:21 +00:00
}
2019-10-29 18:28:15 +00:00
private void AppLogoPictureBox_Click(object sender, EventArgs e)
2018-02-17 12:47:21 +00:00
{
Process.Start("https://crypto-notepad.github.io/");
2018-02-17 12:47:21 +00:00
}
/*Main Information*/
2018-02-17 12:47:21 +00:00
/*Perform open links*/
2019-10-29 18:28:15 +00:00
private void ThirdPartyDevRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
2016-01-15 16:13:33 +00:00
{
Process.Start(e.LinkText);
2016-01-15 16:13:33 +00:00
}
2019-10-29 18:28:15 +00:00
private void ContributorsRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
/*Perform open links*/
2016-01-07 15:00:49 +00:00
}
}