Mercurial > servermonitor
annotate ServerMonitor/Controls/SizeUnitsComboBox.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 SizeUnitsComboBox : ComboBox | |
10 { | |
11 protected override void OnCreateControl() | |
12 { | |
13 base.OnCreateControl(); | |
14 Items.Clear(); | |
15 Items.Add("B"); | |
16 Items.Add("KB"); | |
17 Items.Add("MB"); | |
18 Items.Add("GB"); | |
19 SelectedIndex = 0; | |
20 } | |
21 } | |
22 | |
23 public enum SizeUnits { B = 0, KB = 1, MB = 2, GB = 3 } | |
24 } |