Mercurial > servermonitor
annotate ServerMonitor/Controls/TimeUnitsComboBox.cs @ 5:b6fe203af9d5
Private key passwords and validation
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Thu, 28 Feb 2019 21:19:32 -0500 |
parents | 96f0b028176d |
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 } |