예제 #1
0
 public patientViewForm()
 {
     InitializeComponent();
     _myPatient = new tblPatient();
     _controller = new patientController(this, _myPatient);
     _controller.Initialize();
 }
예제 #2
0
 private void UpdatePatientDetails()
 {
     var foo = (tblPatient)this.displayGridView.GetFocusedRow();
     if (foo != null)
     {
         _myPatient = foo;
         _controller = new patientController(this, _myPatient);
         _controller.Initialize();
         this.UpdateForm();
         this.patientDetailsGroupBox.Text = this._controller.EditCopyPatient.FirstNames + @" " +
                                               this._controller.EditCopyPatient.LastName;
         _newPatient = false;
     }
 }
예제 #3
0
 private void NewPatientBtnClick(object sender, EventArgs e)
 {
     this._newPatient = true;
     this._myPatient = new tblPatient();
     this._controller = new patientController(this, _myPatient);
     this._controller.Initialize();
     this.UpdateForm();
     this.patientDetailsGroupBox.Text = @"Enter a new Patient";
     this.surnameTextEdit.Focus();
     this.applyBtn.Enabled = false;
 }