public static bool CloseCancel() { string message = "Are you sure you want to exit " + PupTools.GetSoftwareName(false) + " ?"; string caption = "Exit"; var result = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result == DialogResult.Yes) { return(true); } else { return(false); } }
private void MainForm_Load(object sender, EventArgs e) { initializeGridList(); grpScreenProp.Enabled = false; Text = PupTools.GetSoftwareName(); }