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 BodyTakeExam() { InitializeComponent(); if (examService == null) { examService = ExamService.getInstance(); } }
public AddExam2() { InitializeComponent(); topicService = TopicService.getInstance(); examService = ExamService.getInstance(); if (strWheres == null) { strWheres = new Dictionary<string, string>(); } }
public static BodyExam createForm() { if (instance == null || instance.IsDisposed) { instance = new BodyExam(); } if (examService == null) examService = ExamService.getInstance(); if (strWheres == null) { strWheres = new Dictionary<string, string>(); } return instance; }
public static ExamService getInstance() { if (instance == null) { instance = new ExamService(); } if (examDao == null) { examDao = new ExaminationDao(); } if (examDetailDao == null) { examDetailDao = new ExaminationDetailDao(); } return instance; }
private void AddExam_Load(object sender, EventArgs e) { examService = ExamService.getInstance(); Util.setLanguage(); ApplyResource(); this.questionsNum.Items.Add(10); this.questionsNum.Items.Add(20); this.questionsNum.Items.Add(30); this.questionsNum.Items.Add(40); this.questionsNum.Items.Add(50); this.questionsNum.Items.Add("全部"); this.questionsNum.SelectedIndex = 0; //加载传过来的考试信息到界面 if (examination != null) { //将选题方式隐藏掉 该信息不需要显示 this.label5.Visible = false; this.exType.Visible = false; if (examination.ExamCat.Equals('1')) { topicCategory.SelectedIndex = 0; } else { topicCategory.SelectedIndex = 1; } this.txtExamName.Text = examination.ExamName; this.startTime.Text = examination.StartTime; this.totalMins.Text = Convert.ToString(examination.TotalMins); this.questionsNum.Text = Convert.ToString(examination.Num); } }
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(); } }