comparison ServerMonitor/Controls/MatchComboBox.cs @ 1:9e92780ebc0f

Additional validation for SSH check
author Brad Greco <brad@bgreco.net>
date Tue, 01 Jan 2019 21:14:47 -0500
parents ServerMonitor/Controls/IncludesComboBox.cs@3e1a2131f897
children 7127d5b5ac75
comparison
equal deleted inserted replaced
0:3e1a2131f897 1:9e92780ebc0f
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 MatchComboBox : ComboBox
10 {
11 protected override void OnCreateControl()
12 {
13 base.OnCreateControl();
14 Items.Clear();
15 Items.Add("equals");
16 Items.Add("does not equal");
17 Items.Add("contains");
18 Items.Add("does not contain");
19 Items.Add("is greater than");
20 Items.Add("is less than");
21 SelectedIndex = 0;
22 }
23 }
24
25 public enum MatchType { Equals = 0, NotEquals = 1, Contains = 2, NotContains = 3, GreaterThan = 4, LessThan = 5 }
26 }