private void btnBack_Click(object sender, EventArgs e) { adminmenu am = new adminmenu(); this.Hide(); am.Show(); }
private void btnLogin_Click(object sender, EventArgs e) { Admin objectadmin = new Admin(); if (txtID.Text == objectadmin.id && txtPass.Text == objectadmin.password) { adminmenu menu = new adminmenu(); this.Hide(); menu.Show(); } else { txtID.Clear(); txtPass.Clear(); txtID.Focus(); lblReq.Text = "Wrong Username or Password !"; } }