diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ServerMonitor/Controls/MatchComboBox.cs	Tue Jan 01 21:14:47 2019 -0500
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace ServerMonitorApp
+{
+    class MatchComboBox : ComboBox
+    {
+        protected override void OnCreateControl()
+        {
+            base.OnCreateControl();
+            Items.Clear();
+            Items.Add("equals");
+            Items.Add("does not equal");
+            Items.Add("contains");
+            Items.Add("does not contain");
+            Items.Add("is greater than");
+            Items.Add("is less than");
+            SelectedIndex = 0;
+        }
+    }
+
+    public enum MatchType { Equals = 0, NotEquals = 1, Contains = 2, NotContains = 3, GreaterThan = 4, LessThan = 5 }
+}