comparison ServerMonitor/Forms/AboutForm.cs @ 20:b21318f6e3f1

About window tweaks
author Brad Greco <brad@bgreco.net>
date Thu, 30 May 2019 20:36:42 -0400
parents b3128fe10d57
children f6235dc0a8ec
comparison
equal deleted inserted replaced
19:b3128fe10d57 20:b21318f6e3f1
16 16
17 private void AboutForm_Load(object sender, EventArgs e) 17 private void AboutForm_Load(object sender, EventArgs e)
18 { 18 {
19 Icon = Resources.icon; 19 Icon = Resources.icon;
20 NameLabel.Text += " " + Assembly.GetExecutingAssembly().GetName().Version.ToString(2); 20 NameLabel.Text += " " + Assembly.GetExecutingAssembly().GetName().Version.ToString(2);
21 // Remove initial focus on the first link causing an dotted outline.
22 ActiveControl = NameLabel;
21 } 23 }
22 24
23 /// <summary>Hides the form when ESC is pressed.</summary> 25 /// <summary>Hides the form when ESC is pressed.</summary>
24 protected override bool ProcessDialogKey(Keys keyData) 26 protected override bool ProcessDialogKey(Keys keyData)
25 { 27 {
31 return base.ProcessDialogKey(keyData); 33 return base.ProcessDialogKey(keyData);
32 } 34 }
33 35
34 private void HomePageLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) 36 private void HomePageLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
35 { 37 {
36 Process.Start("http://bgreco.net/servermonitor"); 38 Process.Start("https://bgreco.net/servermonitor");
39 }
40
41 private void SshNetLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
42 {
43 Process.Start("https://github.com/sshnet/SSH.NET");
44 }
45
46 private void NAppUpdateLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
47 {
48 Process.Start("https://github.com/synhershko/NAppUpdate");
37 } 49 }
38 } 50 }
39 } 51 }