Mercurial > servermonitor
diff ServerMonitor/Forms/SettingsForm.cs @ 6:c1dffaac66fa
- Don't show multiple password dialogs for the same key if the first one was cancelled.
- Add option to trim log files.
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Fri, 01 Mar 2019 21:38:22 -0500 |
parents | 3142e52cbe69 |
children | 052aa62cb42a |
line wrap: on
line diff
--- a/ServerMonitor/Forms/SettingsForm.cs Thu Feb 28 21:19:32 2019 -0500 +++ b/ServerMonitor/Forms/SettingsForm.cs Fri Mar 01 21:38:22 2019 -0500 @@ -26,6 +26,7 @@ comboBox.DataSource = Enum.GetValues(typeof(FailAction)); comboBox.Format += FailActionComboBox_Format; } + KeepLogDaysInput.Value = Settings.Default.KeepLogDays; ErrorComboBox.SelectedItem = Settings.Default.ErrorAction; WarningComboBox.SelectedItem = Settings.Default.WarningAction; InformationComboBox.SelectedItem = Settings.Default.InformationAction; @@ -38,6 +39,7 @@ private void OkButton_Click(object sender, EventArgs e) { + Settings.Default.KeepLogDays = (int)KeepLogDaysInput.Value; Settings.Default.ErrorAction = (FailAction)ErrorComboBox.SelectedItem; Settings.Default.WarningAction = (FailAction)WarningComboBox.SelectedItem; Settings.Default.InformationAction = (FailAction)InformationComboBox.SelectedItem;