Ejemplo n.º 1
0
 private void ShowAdd()
 {
     _change_view = new ChangeForm();
     _change_view.diagnosis_info = model.GetDiagnosisInfo();
     _change_view.Ok            += () => AddPatient(_change_view.fio, _change_view.address, _change_view.tel, _change_view.policy, _change_view.passport, _change_view.diagnosis);
     _change_view.ShowDialog();
 }
Ejemplo n.º 2
0
 private void ShowChange()
 {
     if (_patient_view.selected_row)
     {
         _change_view = new ChangeForm();
         _change_view.diagnosis_info = model.GetDiagnosisInfo();
         _change_view.fio            = _patient_view.fio;
         _change_view.address        = _patient_view.address;
         _change_view.tel            = _patient_view.tel;
         _change_view.policy         = _patient_view.policy;
         _change_view.passport       = _patient_view.passport;
         _change_view.diagnosis      = _patient_view.diagnosis;
         _change_view.Ok            += () => ChangePatient(_change_view.fio, _change_view.address, _change_view.tel, _change_view.policy, _change_view.passport, _change_view.diagnosis);
         _change_view.ShowDialog();
     }
     else
     {
         _patient_view.ShowError("Выберете строку!");
     }
 }