Example #1
0
        private void LogoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Are you sure you want to Log Out?", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                this.Hide();
                SignIn signIn = new SignIn();
                signIn.Show();
            }
        }
 private void Btn_Signout_Click(object sender, EventArgs e)
 {
     this.Close();
     SignIn signIn = new SignIn();
     signIn.Show();
 }