Mercurial > servermonitor
diff ServerMonitor/Controls/SshCheckControl.cs @ 9:7127d5b5ac75
Code cleanup and comments
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Mon, 08 Apr 2019 21:29:54 -0400 |
parents | 9e92780ebc0f |
children |
line wrap: on
line diff
--- a/ServerMonitor/Controls/SshCheckControl.cs Sat Mar 09 20:14:03 2019 -0500 +++ b/ServerMonitor/Controls/SshCheckControl.cs Mon Apr 08 21:29:54 2019 -0400 @@ -1,14 +1,8 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Linq; -using System.Text; -using System.Windows.Forms; namespace ServerMonitorApp { + /// <summary>Control for editing an SSH space check.</summary> [CheckType(typeof(SshCheck))] public partial class SshCheckControl : CheckControl { @@ -17,6 +11,7 @@ InitializeComponent(); } + /// <summary>Sets the values of the controls from a check's properties.</summary> public override void LoadCheck(Check check1) { SshCheck check = (SshCheck)check1; @@ -29,6 +24,7 @@ CommandOutputRegexCheckBox.Checked = check.CommandOutputUseRegex; } + /// <summary>Updates the properties of a check from user input.</summary> public override void UpdateCheck(Check check1) { SshCheck check = (SshCheck)check1; @@ -55,6 +51,7 @@ check.CommandOutputUseRegex = CommandOutputRegexCheckBox.Checked; } + /// <summary>Disables the regex checkbox if a numeric comparison is selected.</summary> private void CommandOutputComboBox_SelectedIndexChanged(object sender, EventArgs e) { bool numeric = ((MatchType)CommandOutputComboBox.SelectedIndex).In(MatchType.GreaterThan, MatchType.LessThan);