comparison ServerMonitor/Controls/SizeUnitsComboBox.cs @ 3:96f0b028176d

File check
author Brad Greco <brad@bgreco.net>
date Fri, 11 Jan 2019 22:34:18 -0500
parents
children 7127d5b5ac75
comparison
equal deleted inserted replaced
2:453ecc1ed9ea 3:96f0b028176d
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 }