Mercurial > servermonitor
annotate 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 |
rev | line source |
---|---|
3 | 1 using System; |
2 using System.Collections.Generic; | |
3 using System.Linq; | |
4 using System.Text; | |
5 using System.Windows.Forms; | |
6 | |
7 namespace ServerMonitorApp | |
8 { | |
9 class TimeUnitsComboBox : ComboBox | |
10 { | |
11 protected override void OnCreateControl() | |
12 { | |
13 base.OnCreateControl(); | |
14 Items.Clear(); | |
15 Items.Add("minutes"); | |
16 Items.Add("hours"); | |
17 Items.Add("days"); | |
18 SelectedIndex = 2; | |
19 } | |
20 } | |
21 | |
22 public enum TimeUnits { Minute = 0, Hour = 1, Day = 2 } | |
23 } |