Esempio n. 1
0
        private void admin_Click(object sender, EventArgs e)
        {
            Hide();
            adminLoginForm fm = new adminLoginForm();

            fm.Show();
        }
Esempio n. 2
0
        private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            const string message = "Are you sure you want to logout?";
            const string caption = "Logging out";
            var          result  = MessageBox.Show(message, caption,
                                                   MessageBoxButtons.YesNo,
                                                   MessageBoxIcon.Question);

            if (result == DialogResult.Yes)
            {
                adminLoginForm login = new adminLoginForm();
                login.Show();
                Hide();
            }
            else
            {
                DialogResult = DialogResult.No;
            }
        }