PortProxyGUI/PortProxyGUI - NET/About.cs

33 lines
819 B
C#
Raw Normal View History

2020-05-29 03:32:44 +08:00
using System;
using System.Diagnostics;
2020-05-29 12:37:04 +08:00
using System.Reflection;
2020-05-29 03:32:44 +08:00
using System.Windows.Forms;
namespace PortProxyGUI
{
public partial class About : Form
{
2020-05-29 12:37:04 +08:00
public readonly PortProxyGUI PortProxyGUI;
public About(PortProxyGUI portProxyGUI)
2020-05-29 03:32:44 +08:00
{
2020-05-29 12:37:04 +08:00
PortProxyGUI = portProxyGUI;
2020-05-29 03:32:44 +08:00
InitializeComponent();
2020-05-29 12:37:04 +08:00
label_version.Text = label_version.Text + " v" + Application.ProductVersion;
2020-05-29 03:32:44 +08:00
}
private void linkLabel1_Click(object sender, EventArgs e)
{
if (sender is LinkLabel _sender)
{
Process.Start("explorer", _sender.Text);
}
}
2020-05-29 12:37:04 +08:00
private void About_FormClosing(object sender, FormClosingEventArgs e)
{
PortProxyGUI.AboutForm = null;
}
2020-05-29 03:32:44 +08:00
}
}