private void button4_Click(object sender, EventArgs e)
        {
            this.Hide();
            AdminHomepage ah = new AdminHomepage();

            ah.ShowDialog();
            this.Close();
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            String username = tbUsername.Text.ToString();
            String password = tbPassword.Text.ToString();

            if (username == "admin" && password == "admin")
            {
                MessageBox.Show("Login is Successful!!!");
                this.Hide();
                AdminHomepage hp = new AdminHomepage();
                hp.ShowDialog();
            }
            else
            {
                MessageBox.Show("Wrong Password...Check Again!!!");
            }
        }