Mercurial > servermonitor
diff ServerMonitor/Controls/SizeUnitsComboBox.cs @ 9:7127d5b5ac75
Code cleanup and comments
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Mon, 08 Apr 2019 21:29:54 -0400 |
parents | 96f0b028176d |
children | 68d7834dc28e |
line wrap: on
line diff
--- a/ServerMonitor/Controls/SizeUnitsComboBox.cs Sat Mar 09 20:14:03 2019 -0500 +++ b/ServerMonitor/Controls/SizeUnitsComboBox.cs Mon Apr 08 21:29:54 2019 -0400 @@ -1,16 +1,14 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Windows.Forms; +using System.Windows.Forms; namespace ServerMonitorApp { + /// <summary>Combo box containing options for size units.</summary> class SizeUnitsComboBox : ComboBox { protected override void OnCreateControl() { base.OnCreateControl(); + // Clear the items to prevent duplicates added at design time and run time. Items.Clear(); Items.Add("B"); Items.Add("KB"); @@ -20,5 +18,6 @@ } } + /// <summary>Size units.</summary> public enum SizeUnits { B = 0, KB = 1, MB = 2, GB = 3 } }