Mercurial > servermonitor
view 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 |
line wrap: on
line source
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace ServerMonitorApp { class SizeUnitsComboBox : ComboBox { protected override void OnCreateControl() { base.OnCreateControl(); Items.Clear(); Items.Add("B"); Items.Add("KB"); Items.Add("MB"); Items.Add("GB"); SelectedIndex = 0; } } public enum SizeUnits { B = 0, KB = 1, MB = 2, GB = 3 } }