mirror of
https://github.com/JonasNilson/idle_master_extended.git
synced 2025-05-15 05:43:49 +02:00
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Reflection;
|
|
using System.Windows.Forms;
|
|
|
|
namespace IdleMasterExtended
|
|
{
|
|
public partial class frmAbout : Form
|
|
{
|
|
public frmAbout()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void btnOK_Click(object sender, EventArgs e)
|
|
{
|
|
Close();
|
|
}
|
|
|
|
private void frmAbout_Load(object sender, EventArgs e)
|
|
{
|
|
SetLocalization();
|
|
SetVersion();
|
|
ThemeHandler.SetTheme(this, Properties.Settings.Default.customTheme);
|
|
}
|
|
|
|
private void SetLocalization()
|
|
{
|
|
btnOK.Text = localization.strings.ok;
|
|
}
|
|
|
|
private void SetVersion()
|
|
{
|
|
var version = Assembly.GetExecutingAssembly().GetName().Version;
|
|
linkLabelVersion.Text = string.Format("Idle Master Extended v{0}.{1}.{2}", version.Major, version.Minor, version.Build);
|
|
}
|
|
|
|
private void linkLabelVersion_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
{
|
|
System.Diagnostics.Process.Start("https://github.com/JonasNilson/idle_master_extended/releases");
|
|
}
|
|
}
|
|
}
|