Пример #1
0
        private void ok_Click(object sender, EventArgs e)
        {
            adminmenupage am = new adminmenupage();

            am.Show();
            this.Hide();
        }
        private void Refresh_Click(object sender, EventArgs e)
        {
            adminmenupage fm = new adminmenupage();

            fm.Show();
            this.Hide();
        }
 private void Login_Click(object sender, EventArgs e)
 {
     if (ID.Text == "admin" && Password.Text == "abc123")
     {
         MessageBox.Show("Logged In");
         adminmenupage fm = new adminmenupage();
         fm.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Wrong ID or Password !!");
     }
 }