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 AddExam2() { InitializeComponent(); topicService = TopicService.getInstance(); examService = ExamService.getInstance(); if (strWheres == null) { strWheres = new Dictionary<string, string>(); } }
public static TopicService getInstance() { if (instance == null) { instance = new TopicService(); } if (topicDao == null) { topicDao = new TopicDao(); } if (topicDetailDao == null) { topicDetailDao = new TopicDetailDao(); } return instance; }
public static BodyTopic createForm() { if (instance == null) { instance = new BodyTopic(); } if (topicService == null) { topicService = TopicService.getInstance(); } if (strWheres == null) { strWheres = new Dictionary<string, string>(); } return instance; }
public static chooseTopics createForm(Examination exam_in) { exam = exam_in; //if (instance == null || instance.IsDisposed) //{ instance = new chooseTopics(); //} if (topicService == null) { topicService = TopicService.getInstance(); } if (examService == null) { examService = ExamService.getInstance(); } if (strWheres == null) { strWheres = new Dictionary<string, string>(); } return instance; }
public BodySelfTest2() { InitializeComponent(); //this.BackColor = Color.FromArgb(255, 208, 232, 253); button7.BackColor = Color.FromArgb(255, 80, 151, 228); button7.ForeColor = Color.White; if (strWheres == null) { strWheres = new Dictionary<string, string>(); } if (examService == null) { examService = ExamService.getInstance(); } if (topicService == null) { topicService = TopicService.getInstance(); } }
public TopicController() { IKernel kernel = new StandardKernel(new ForumNinjectModule()); service = kernel.Get<TopicService>(); }