public BodyTakeExam2() { InitializeComponent(); //this.BackColor = Color.FromArgb(255, 208, 232, 253); btnPre.BackColor = Color.FromArgb(255, 80, 151, 228); btnPre.ForeColor = Color.White; btnNext.BackColor = Color.FromArgb(255, 80, 151, 228); btnNext.ForeColor = Color.White; btnSubmit.BackColor = Color.FromArgb(255, 80, 151, 228); btnSubmit.ForeColor = Color.White; if (examService == null) { examService = ExamService.getInstance(); } if (strWheres == null) { strWheres = new Dictionary<string, string>(); } if (examResultService == null) { examResultService = ExamResultService.getInstance(); } if (topicService == null) { topicService = TopicService.getInstance(); } }
public static ExamResultService getInstance() { if (instance == null) { instance = new ExamResultService(); } if (examResultDao == null) { examResultDao = new ExamResultDao(); } return instance; }
//private static string totalNum; public static BodySelfTest4 createForm(string exam_id_in) { //if (instance == null || instance.IsDisposed) //{ instance = new BodySelfTest4(); //} if (examResultService == null) { examResultService = ExamResultService.getInstance(); } if (strWheres == null) { strWheres = new Dictionary<string, string>(); } exam_id = exam_id_in; return instance; }
public static BodyScore createForm() { if (instance == null || instance.IsDisposed) { instance = new BodyScore(); } if (examResultService == null) { examResultService = ExamResultService.getInstance(); } if (strWheres == null) { strWheres = new Dictionary<string, string>(); } return instance; }