Пример #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;
 }