private void button3_Click(object sender, EventArgs e)
        {
            adminmainpage a = new adminmainpage();

            a.Show();
            this.Hide();
        }
예제 #2
0
        private void b1_Click(object sender, EventArgs e)
        {
            string name = " akshat";
            string pass = "******";

            if (t1.Text == "akshat" && t2.Text == "akshat123")
            {
                MessageBox.Show("logged in successfully");
                adminmainpage am1 = new adminmainpage();
                am1.ShowDialog();
                this.Hide();
            }
            else if (t1.Text == "" && t2.Text == "")
            {
                MessageBox.Show("Enter credential");
            }
            else
            {
                MessageBox.Show("wrong credential");
            }
            ClearControls();
        }