Mercurial > servermonitor
view ServerMonitor/Controls/TimeUnitsComboBox.cs @ 6:c1dffaac66fa
- Don't show multiple password dialogs for the same key if the first one was cancelled.
- Add option to trim log files.
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Fri, 01 Mar 2019 21:38:22 -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 TimeUnitsComboBox : ComboBox { protected override void OnCreateControl() { base.OnCreateControl(); Items.Clear(); Items.Add("minutes"); Items.Add("hours"); Items.Add("days"); SelectedIndex = 2; } } public enum TimeUnits { Minute = 0, Hour = 1, Day = 2 } }