diff ServerMonitor/Forms/SettingsForm.cs @ 11:75ca86e0862c

Add setting to hide to notification area.
author Brad Greco <brad@bgreco.net>
date Mon, 15 Apr 2019 19:24:25 -0400
parents 052aa62cb42a
children 7626b099aefd
line wrap: on
line diff
--- a/ServerMonitor/Forms/SettingsForm.cs	Mon Apr 08 21:31:03 2019 -0400
+++ b/ServerMonitor/Forms/SettingsForm.cs	Mon Apr 15 19:24:25 2019 -0400
@@ -32,6 +32,7 @@
                 comboBox.Format += FailActionComboBox_Format;
             }
             AutorunCheckBox.Checked = GetAutorun();
+            KeepRunningCheckBox.Checked = Settings.Default.HideToNotificationArea;
             KeepLogDaysInput.Value = Settings.Default.KeepLogDays;
             ErrorComboBox.SelectedItem = Settings.Default.ErrorAction;
             WarningComboBox.SelectedItem = Settings.Default.WarningAction;
@@ -61,6 +62,7 @@
 
         private void OkButton_Click(object sender, EventArgs e)
         {
+            Settings.Default.HideToNotificationArea = KeepRunningCheckBox.Checked;
             Settings.Default.KeepLogDays = (int)KeepLogDaysInput.Value;
             Settings.Default.ErrorAction = (FailAction)ErrorComboBox.SelectedItem;
             Settings.Default.WarningAction = (FailAction)WarningComboBox.SelectedItem;