private void ManageVehicles_Click(object sender, EventArgs e) { Hide(); EmployeePlanelF em = new EmployeePlanelF(5); em.Show(); }
private void BackButton_Click(object sender, EventArgs e) { this.Hide(); EmployeePlanelF ep = new EmployeePlanelF(); ep.Show(); }
private void BackButton_Click(object sender, EventArgs e) { this.Hide(); EmployeePlanelF EP = new EmployeePlanelF(); EP.Visible = true; }
private void button1_Click(object sender, EventArgs e) { var count = _repo.IsExist(UserNameTextBox.Text.Trim(), PasswordTextBox.Text.Trim()); if (count == 1) { this.Hide(); AdminF af = new AdminF(); af.Visible = true; //bv = true; } else if (count == 2) { this.Hide(); EmployeePlanelF ep = new EmployeePlanelF(); ep.Visible = true; } else { MessageBox.Show(" User Name Or Password Incorrect ! ", "invalid login credentials", MessageBoxButtons.OK, MessageBoxIcon.Error); } /* info.userName = UserNameTextBox.Text; * info.userPass = PasswordTextBox.Text; * * * dt = opr.login(info); * * if (dt.Rows.Count > 0) * { * //dt.Rows[0][4] * AdminF ad = new AdminF(); * ad.Show(); * //this.Close(); * this.Hide(); * * } * else * { * MessageBox.Show("Invalid User name or Password !!! "); * } * */ }
private void button1_Click_1(object sender, EventArgs e) { EmployeePlanelF ep = new EmployeePlanelF(); ep.Show(); }