diff ServerMonitor/Controls/HttpCheckControl.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 b713b9db4c82
line wrap: on
line diff
--- a/ServerMonitor/Controls/HttpCheckControl.cs	Sat Mar 09 20:14:03 2019 -0500
+++ b/ServerMonitor/Controls/HttpCheckControl.cs	Mon Apr 08 21:29:54 2019 -0400
@@ -1,14 +1,6 @@
-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
+namespace ServerMonitorApp
 {
+    /// <summary>Control for editing an HTTP check.</summary>
     [CheckType(typeof(HttpCheck))]
     public partial class HttpCheckControl : CheckControl
     {
@@ -17,6 +9,7 @@
             InitializeComponent();
         }
 
+        /// <summary>Sets the values of the controls from a check's properties.</summary>
         public override void LoadCheck(Check check1)
         {
             HttpCheck check = (HttpCheck)check1;
@@ -32,6 +25,7 @@
             ResponseBodyRegexCheckBox.Checked = check.ResponseBodyUseRegex;
         }
 
+        /// <summary>Updates the properties of a check from user input.</summary>
         public override void UpdateCheck(Check check1)
         {
             HttpCheck check = (HttpCheck)check1;