private void init(string text, string caption, string checkText, bool isChecked) { InitializeComponent(); this.Result = MessageWCheckResult.None; lblLabel.Text = text; this.Text = caption; chkCheck.Text = checkText; chkCheck.Checked = isChecked; this.Icon = Properties.Resources.Map; }
private void btnYes_Click(object sender, EventArgs e) { if (chkCheck.Checked) this.Result = MessageWCheckResult.YesChecked; else this.Result = MessageWCheckResult.Yes; this.Close(); }