view ServerMonitor/Forms/CheckBoxDialog.cs @ 1:9e92780ebc0f

Additional validation for SSH check
author Brad Greco <brad@bgreco.net>
date Tue, 01 Jan 2019 21:14:47 -0500
parents 3e1a2131f897
children 7127d5b5ac75
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ServerMonitorApp
{
    public partial class CheckBoxDialog : Form
    {
        public string Message { get; set; }

        public bool Checked { get; private set; }

        public CheckBoxDialog()
        {
            InitializeComponent();
        }

        private void CheckBoxDialog_Load(object sender, EventArgs e)
        {
            MessageIcon.Image = SystemIcons.Question.ToBitmap();
            MessageLabel.Text = Message;
        }

        private void PromptCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            Checked = PromptCheckBox.Checked;
        }
    }
}