Esempio n. 1
0
        // return to home screen
        private void exitBtn_Click(object sender, EventArgs e)
        {
            homeScreen hS = new homeScreen();

            hS.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void returnToHomeBtn_Click(object sender, EventArgs e)
        {
            // return to home screen
            homeScreen hS = new homeScreen();

            hS.Show();
            this.Hide();
        }
Esempio n. 3
0
        // this brings the user to the home screen
        private void cancelBtn_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Do you want to exit to the home screen?", "Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                connection.Close();

                homeScreen hS = new homeScreen();
                hS.Show();
                this.Close();
            }
        }