private IExam CreateExam(int examID, int patientID, ExamType type) { try { IExam exam = null; switch (type) { case ExamType.REVIEW: exam = new Exam(examID, patientID, type); break; case ExamType.PULMONARY: exam = new VQExam(examID, patientID, type); break; } return exam; } catch (Exception e) { System.Windows.MessageBox.Show("There was an error creating the exam reference: " + e.ToString()); return null; } }
public ExamDA(Exam examObj) { ExamParent = examObj; }