private void addTechnician(String fName, String lName, String username, String password, String dob, String salary, String sex) { User.Technician technician = new User.Technician(); technician.firstName = fName; technician.lastName = lName; technician.username = username; technician.password = password; technician.dob = dob; technician.salary = salary; technician.sex = sex; bool success = technician.AddNewTechnician(technician, this); if (success == true) { CustomMessageBox cm = new CustomMessageBox("Successfully Added Technician", this); cm.Show(); ClearField(); } //else //{ // CustomMessageBox cm = new CustomMessageBox("Failed to add new doctor", this); // cm.Show(); //} }