mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
80 lines
2.3 KiB
C#
80 lines
2.3 KiB
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Crypto_Notepad
|
|
{
|
|
public partial class AboutFrom : Form
|
|
{
|
|
public AboutFrom()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
/*Form Events*/
|
|
private void AboutWindow_Load(object sender, EventArgs e)
|
|
{
|
|
Version vrs = new Version(Application.ProductVersion);
|
|
AppVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
|
|
}
|
|
|
|
private void AboutFrom_Click(object sender, EventArgs e)
|
|
{
|
|
AppLogoPictureBox.Focus();
|
|
}
|
|
|
|
protected override bool ProcessDialogKey(Keys keyData)
|
|
{
|
|
if (ModifierKeys == Keys.None && keyData == Keys.Escape)
|
|
{
|
|
Close();
|
|
return true;
|
|
}
|
|
return base.ProcessDialogKey(keyData);
|
|
}
|
|
/*Form Events*/
|
|
|
|
|
|
/*Main Information*/
|
|
private void AppVersionLabel_Click(object sender, EventArgs e)
|
|
{
|
|
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes");
|
|
}
|
|
|
|
private void AuthorLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
{
|
|
Process.Start("https://sigmanor.github.io/");
|
|
}
|
|
|
|
private void LicenseLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
{
|
|
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE");
|
|
}
|
|
|
|
private void GithubLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
{
|
|
Process.Start("https://github.com/Crypto-Notepad/Crypto-Notepad");
|
|
}
|
|
|
|
private void AppLogoPictureBox_Click(object sender, EventArgs e)
|
|
{
|
|
Process.Start("https://crypto-notepad.github.io/");
|
|
}
|
|
/*Main Information*/
|
|
|
|
|
|
/*Perform open links*/
|
|
private void TPDRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
|
{
|
|
Process.Start(e.LinkText);
|
|
}
|
|
|
|
private void ContributorsRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
|
{
|
|
Process.Start(e.LinkText);
|
|
}
|
|
/*Perform open links*/
|
|
|
|
}
|
|
}
|