Пример #1
0
        private void goback_btn1_Click(object sender, EventArgs e)
        {
            closeProgram = false;

            this.Close();
            SplashPage sp = new SplashPage(dbManager, stateManager);

            sp.Show();
        }
Пример #2
0
        private void button_WOC1_Click(object sender, EventArgs e)
        {
            {
                // Show a dialog box.
                DialogResult d = MessageBox.Show("Are You Sure You Want To Change Your Password?", "Project PICK", MessageBoxButtons.YesNo);
                if (d == DialogResult.No)
                {
                    DialogResult a = MessageBox.Show("You will now be redirected to the Login Screen");
                    // don't do anything
                }
                else
                {
                    DialogResult a = MessageBox.Show("The Administrator has been contacted, please wait for an email.");
                    closeProgram = false;

                    this.Close();
                    SplashPage sp = new SplashPage(dbManager, stateManager);
                    sp.Show();
                }
            }
        }