Exemple #1
0
        private void ADMIN_Click(object sender, EventArgs e)
        {
            LoginAdmin adlog = new LoginAdmin();

            this.Hide();
            adlog.Show(); // Existing form close
        }
Exemple #2
0
        private void Log_Out_Click(object sender, EventArgs e)
        {
            LoginAdmin ad = new LoginAdmin();

            this.Hide();
            ad.Show();
        }
Exemple #3
0
        //method to logout and go back
        private void Log_Out_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are you sure you want to logout ?", "Admin",
                                                        MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dialogResult == DialogResult.Yes)
            {
                LoginAdmin ad = new LoginAdmin();
                this.Hide();
                ad.Show();
            }
        }