view ServerMonitor/Controls/IncludesComboBox.cs @ 0:3e1a2131f897

Initial commit. Ping check, scheduling, UI working. SSH check mostly working.
author Brad Greco <brad@bgreco.net>
date Mon, 31 Dec 2018 18:32:14 -0500
parents
children
line wrap: on
line source

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");
        }
    }

    public enum MatchType { Equals = 0, NotEquals = 1, Contains = 2, NotContains = 3 }
}