Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     initializeGridList();
     grpScreenProp.Enabled = false;
     Text = PupTools.GetSoftwareName();
 }