public FormAdvancedSearch(CtrlDeletePatient delPatient, MySqlConnection conn, string userID) { InitializeComponent(); this.formStaff = formStaff; this.windows = WindowList.Staff; this.delPatient = delPatient; this.controls = ControlsList.Del_Pat; this.pnlSearchPat.Visible = true; this.pnlSearchDoc.Visible = false; this.pnlPatDoc.Visible = false; this.conn = conn; this.userID = userID; this.UpdateHeader(); }
public FormAdmin(MySqlConnection conn, string userID, string firstName, string lastName, string userType) { InitializeComponent(); this.conn = conn; this.userID = userID; this.firstName = firstName; this.lastName = lastName; this.userType = userType; this.lblFirstName.Text = firstName; this.lblLastName.Text = lastName; this.lblUserID.Text = userID; this.lblUserType.Text = userType; this.ctrlAddStaff = new CtrlAddStaff(conn, userID); this.ctrlRemoveStaff = new CtrlRemoveStaff(conn, userID); this.ctrlDeletePatient = new CtrlDeletePatient(conn, userID); this.pnlControl.Controls.Clear(); this.pnlControl.Controls.Add(ctrlDeletePatient); }