Ejemplo n.º 1
0
 public void Load(int diagnosisId)
 {
     try
     {
         if (diagnosisId == 0)
         {
             throw new ArgumentNullException("diagnosisId трябва да е различно от 0!");
         }
         var diagnosis = DiagnosesDataAccess.GetDiagnosisById(diagnosisId);
         this.Diagnosis = diagnosis;
         this.FillView();
     }
     catch (Exception e)
     {
         string message = "Грешка!:" + e.Message;
         View.Message = message;
     }
 }
Ejemplo n.º 2
0
 public void Load(int diagnosisId)
 {
     try
     {
         if (diagnosisId == 0)
         {
             throw new ArgumentNullException("diagnosisId должен отличаться от 0!");
         }
         var diagnosis = DiagnosesDataAccess.GetDiagnosisById(diagnosisId);
         this.Diagnosis = diagnosis;
         this.FillView();
     }
     catch (Exception e)
     {
         string message = "Ошибка!:" + e.Message;
         View.Message = message;
     }
 }