diff ServerMonitor/Controls/TimeUnitsComboBox.cs @ 3:96f0b028176d

File check
author Brad Greco <brad@bgreco.net>
date Fri, 11 Jan 2019 22:34:18 -0500
parents
children 7127d5b5ac75
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ServerMonitor/Controls/TimeUnitsComboBox.cs	Fri Jan 11 22:34:18 2019 -0500
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace ServerMonitorApp
+{
+    class TimeUnitsComboBox : ComboBox
+    {
+        protected override void OnCreateControl()
+        {
+            base.OnCreateControl();
+            Items.Clear();
+            Items.Add("minutes");
+            Items.Add("hours");
+            Items.Add("days");
+            SelectedIndex = 2;
+        }
+    }
+
+    public enum TimeUnits { Minute = 0, Hour = 1, Day = 2 }
+}