Mercurial > servermonitor
diff ServerMonitor/Forms/CheckBoxDialog.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 | 7127d5b5ac75 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ServerMonitor/Forms/CheckBoxDialog.cs Mon Dec 31 18:32:14 2018 -0500 @@ -0,0 +1,34 @@ +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; + } + } +}