-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFormAbout.cs
58 lines (44 loc) · 1.44 KB
/
FormAbout.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ClipboardAutoProcessor
{
public partial class FormAbout : Form
{
#region Constructor
public FormAbout()
{
InitializeComponent();
UpdateTexts();
}
#endregion
#region I18n
private void UpdateTexts()
{
labelTitle.Text = I18n._("Clipboard Auto Processor");
labelGithubPage.Text = I18n._("View on GitHub:");
this.Text = I18n._("About Clipboard Auto Processor");
}
#endregion
private void FormAbout_Load(object sender, EventArgs e)
{
labelTitle.Font = new Font("Arial", 13.5f); // Arial, Calibri, Segoe UI, Tahoma, Verdana
labelVersion.Text = "v" + ApplicationService.GetCurrentVersion();
labelCopyright.Text = ApplicationService.GetCopyrightInformation();
}
private void FormAbout_Shown(object sender, EventArgs e)
{
labelTitle.Focus();
}
private void LinkLabelGithubPage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(linkLabelGithubPage.Text);
}
}
}