public patientViewForm() { InitializeComponent(); _myPatient = new tblPatient(); _controller = new patientController(this, _myPatient); _controller.Initialize(); }
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; } }
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; }