private void button1_Click(object sender, EventArgs e)
        {
            ConfirmationMessage confirm = new ConfirmationMessage();

            if (confirm.ShowDialog() == DialogResult.OK)
            {
                this.Close();
                Workspace.Show();
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ConfirmationMessage confirm = new ConfirmationMessage();

            confirm.label1.Text    = "Are you sure you want to exit?";
            confirm.label2.Visible = false;
            if (confirm.ShowDialog() == DialogResult.OK)
            {
                Environment.Exit(1);
            }
        }
 private void button11_Click(object sender, EventArgs e)
 {
     ImageInputError();
     if (Image_Validation.Equals(true))
     {
         ConfirmationMessage confirm = new ConfirmationMessage();
         if (confirm.ShowDialog() == DialogResult.OK)
         {
             MessageBox.Show("Feature not yet available\n We're working on it!", "Ooops");
         }
     }
 }
        private void button1_Click(object sender, EventArgs e)
        {
            Login Logout = new Login();
            ConfirmationMessage confirm = new  ConfirmationMessage();

            confirm.label1.Text    = "Are you sure you want to logout?";
            confirm.label2.Visible = false;
            if (confirm.ShowDialog() == DialogResult.OK)
            {
                this.Hide();
                Logout.Show();
            }
            // DialogResult k;
            //k = MessageBox.Show("Are you sure you want to Exit?", "Confirmation Message.", MessageBoxButtons.YesNo);
            //if (k == System.Windows.Forms.DialogResult.Yes)
            //{
            //    this.Hide();
            //    Login Log = new Login();
            //    Log.Show();
            //}
        }