comparison ServerMonitor/Forms/ServerSummaryForm.cs @ 19:b3128fe10d57

Add About form and license.
author Brad Greco <brad@bgreco.net>
date Wed, 29 May 2019 20:18:37 -0400
parents 7626b099aefd
children 3866c19535fd
comparison
equal deleted inserted replaced
18:b713b9db4c82 19:b3128fe10d57
29 if (size.Height > 0 && size.Width > 0) 29 if (size.Height > 0 && size.Width > 0)
30 Size = size; 30 Size = size;
31 31
32 // Resize the images in buttons to fit the button size. 32 // Resize the images in buttons to fit the button size.
33 Helpers.FormatImageButton(NewServerButton); 33 Helpers.FormatImageButton(NewServerButton);
34 Helpers.FormatImageButton(AboutButton);
34 Helpers.FormatImageButton(SettingsButton); 35 Helpers.FormatImageButton(SettingsButton);
35 // Create the global server monitor object. 36 // Create the global server monitor object.
36 monitor = new ServerMonitor(this); 37 monitor = new ServerMonitor(this);
37 // Load the server configuration file. 38 // Load the server configuration file.
38 while (true) 39 while (true)
448 // The update description is in the form {version}:{change message}. 449 // The update description is in the form {version}:{change message}.
449 string[] parts = UpdateManager.Instance.Tasks.First().Description.Split(new char[] { ':' }, 2); 450 string[] parts = UpdateManager.Instance.Tasks.First().Description.Split(new char[] { ':' }, 2);
450 version = parts[0]; 451 version = parts[0];
451 changeMessage = parts[1]; 452 changeMessage = parts[1];
452 } 453 }
454
455 private void AboutButton_Click(object sender, EventArgs e)
456 {
457 new AboutForm().Show();
458 }
453 } 459 }
454 } 460 }