예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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();
 }
예제 #4
0
 /// <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();
 }
예제 #5
0
 /// <summary>
 /// The constructor initializes the components
 /// </summary>
 public LoginForm()
 {
     InitializeComponent();
     this.theNurseAdminForm       = null;
     this.theCredentialController = new CredentialController();
 }