Beispiel #1
0
 public referralViewForm()
 {
     InitializeComponent();
     _myDoctor = new tblRefDoctor();
     _controller = new referralController(this, _myDoctor);
     _controller.Initialize();
 }
Beispiel #2
0
 public referralViewForm(tblRefDoctor myDoctor)
 {
     InitializeComponent();
     _myDoctor = myDoctor;
     _controller = new referralController(this, _myDoctor);
     _controller.Initialize();
     this.UpdateForm();
 }
Beispiel #3
0
 private void UpdateDoctorDetails()
 {
     var foo = (tblRefDoctor)this.displayGridView.GetFocusedRow();
     if (foo != null)
     {
         _myDoctor = foo;
         _controller = new referralController(this, _myDoctor);
         _controller.Initialize();
         this.UpdateForm();
         this.doctorDetailsGroupBox.Text = this._controller.EditCopyDoctor.RefDFNames + @" " +
                                               this._controller.EditCopyDoctor.RefDName;
     }
 }
Beispiel #4
0
 private void NewPatientBtnClick(object sender, EventArgs e)
 {
     this._newDoctor = true;
     this._myDoctor = new tblRefDoctor();
     this._controller = new referralController(this, _myDoctor);
     this._controller.Initialize();
     this.UpdateForm();
     this.doctorDetailsGroupBox.Text = @"Enter a new Doctor";
     this.provideTextBox.Focus();
     this.applyBtn.Enabled = false;
 }