forked from ReClassNET/ReClass.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAboutForm.cs
More file actions
43 lines (35 loc) · 1013 Bytes
/
AboutForm.cs
File metadata and controls
43 lines (35 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Diagnostics;
using System.Windows.Forms;
using ReClassNET.UI;
namespace ReClassNET.Forms
{
public partial class AboutForm : IconForm
{
public AboutForm()
{
InitializeComponent();
bannerBox.Icon = Properties.Resources.ReClassNet.ToBitmap();
bannerBox.Title = Constants.ApplicationName;
bannerBox.Text = $"Version: {Constants.ApplicationVersion}";
platformValueLabel.Text = Constants.Platform;
buildTimeValueLabel.Text = Properties.Resources.BuildDate;
authorValueLabel.Text = Constants.Author;
homepageValueLabel.Text = Constants.HomepageUrl;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
GlobalWindowManager.AddWindow(this);
}
protected override void OnFormClosed(FormClosedEventArgs e)
{
base.OnFormClosed(e);
GlobalWindowManager.RemoveWindow(this);
}
private void homepageValueLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start(Constants.HomepageUrl);
}
}
}