Пример #1
0
        private void ExaminationSelectCtrl_StartExamEvent(string subType, SubjectInfo[] subjectInfos, int examTime)
        {
            if (string.IsNullOrEmpty(subType) || subjectInfos == null || subjectInfos.Length == 0)
            {
                MessageBox.Show("题目选择不能为空!");
                return;
            }
            ExaminationCtrl ctrl = new ExaminationCtrl(subType, subjectInfos, examTime);

            ctrl.SubmitEvent += new ExaminationCtrl.SubmitEventDelegate(ExaminationCtrl_SubmitEvent);
            ChangeFormTo(ctrl);
        }
Пример #2
0
        private void SubjectRedoEventHandle(ExamSubjectCtrl[] examSubCtrls)
        {
            if (examSubCtrls == null || examSubCtrls.Length == 0)
            {
                MessageBox.Show("没有错题!");
                return;
            }
            ExaminationCtrl ctrl = new ExaminationCtrl(examSubCtrls);

            ctrl.ResultEvent += new ExaminationCtrl.ResultEventDelegate(ResultEventHandle);
            ChangeFormTo(ctrl);
        }