-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutForm.cs
36 lines (28 loc) · 969 Bytes
/
AboutForm.cs
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
using System.Reflection;
namespace Mouse_Mender
{
public partial class AboutForm : Form
{
// Declared Variables
private Version version = Assembly.GetExecutingAssembly().GetName().Version;
private string versionFormatted;
public AboutForm()
{
InitializeComponent();
}
// AboutForm Load Event
private void AboutForm_Load(object sender, EventArgs e)
{
// Set AboutForm start location to same position as MainForm currently
this.Location = Properties.Settings.Default.LastWindowLocation;
// Format Version String
versionFormatted = $"{version.Major}.{version.Minor}.{version.Build}";
// Set Version Label
label7.Text = "Mouse Mender v" + versionFormatted;
}
// Logo Picture Box Clicked
private void pictureBox1_Click(object sender, EventArgs e)
{
}
}
}