/// <summary> /// Constructor for the add nurse form /// </summary> /// <param name="theInputNurseUserControl">the refering usercontrol</param> public AddNurseForm(NurseUserControl theInputNurseUserControl) { InitializeComponent(); this.theNurseController = new NurseController(); this.theCredentialController = new CredentialController(); this.nurseUserControl = theInputNurseUserControl; }
/// <summary> /// The constructor initializes the components /// </summary> /// <param name="theInputLoginForm"></param> public NurseAdminForm(LoginForm theInputLoginForm) { InitializeComponent(); this.theLoginForm = theInputLoginForm; theCredentialController = new CredentialController(); this.username = ""; this.patientUserControl1.SetNurseAdminForm(this); }
/// <summary> /// Constructor for view nurse form /// </summary> /// <param name="theInputNurseUserControl">referring Nurse user control</param> /// <param name="theInputedNurse">the Nurse object whose infor will be displayed</param> public ViewNurseForm(NurseUserControl theInputNurseUserControl, Nurse theInputedNurse) { InitializeComponent(); this.theCredentialController = new CredentialController(); this.theNurseUserControl = theInputNurseUserControl; this.theNurse = theInputedNurse; this.theNurseUserControl.Enabled = false; this.ShowPatientInformation(); }
/// <summary> /// Constructor for edit nurse form /// </summary> /// <param name="theInputNurseUserControl"></param> /// <param name="theInputNurse"></param> public EditNurseForm(NurseUserControl theInputNurseUserControl, Nurse theInputNurse) { InitializeComponent(); this.theNurseUserControl = theInputNurseUserControl; this.theNurse = theInputNurse; this.theNurseController = new NurseController(); this.theCredentialController = new CredentialController(); this.ShowNurseInformation(); }
/// <summary> /// The constructor initializes the components /// </summary> public LoginForm() { InitializeComponent(); this.theNurseAdminForm = null; this.theCredentialController = new CredentialController(); }