Example #1
0
        private void Label10_Click(object sender, EventArgs e)
        {
            this.Hide();
            Signin sn = new Signin();

            sn.ShowDialog();
        }
Example #2
0
        private void Home_FormClosing(object sender, FormClosingEventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Are you sure want to sign out?", "Sign Out", MessageBoxButtons.YesNo);

            if (dialog == DialogResult.Yes)
            {
                Signin si = new Signin();
                si.Show();
                this.Hide();
            }
            else if (dialog == DialogResult.No)
            {
                e.Cancel = true;
            }
        }