private void go_back_Click(object sender, EventArgs e) { this.Hide(); adminwork admin = new adminwork(); admin.Show(); }
private void btnlogin_Click_1(object sender, EventArgs e) { if ((txtusername.Text == "Admin" || txtusername.Text == "Abdo") && txtpassword.Text == "12345") { this.Hide(); adminwork admin = new adminwork(); admin.Show(); } else { MessageBox.Show("Invalid Password"); } }