comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:3e1a2131f897
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9
10 namespace ServerMonitorApp
11 {
12 public partial class CheckBoxDialog : Form
13 {
14 public string Message { get; set; }
15
16 public bool Checked { get; private set; }
17
18 public CheckBoxDialog()
19 {
20 InitializeComponent();
21 }
22
23 private void CheckBoxDialog_Load(object sender, EventArgs e)
24 {
25 MessageIcon.Image = SystemIcons.Question.ToBitmap();
26 MessageLabel.Text = Message;
27 }
28
29 private void PromptCheckBox_CheckedChanged(object sender, EventArgs e)
30 {
31 Checked = PromptCheckBox.Checked;
32 }
33 }
34 }