コード例 #1
0
        /// <summary>
        /// My exam init
        /// </summary>
        public MyExamList()
        {
            InitializeComponent();

            studentSelect = new StudentSelect();
            studentExam   = new StudentExamManage();

            studentSelect.StudentSortName     = STRING_EMPTY;
            studentSelect.StudentSortDirction = "asc";
            studentSelect.CurrentPage         = INT_ONE;
            studentSelect.PageSize            = INT_TEN;
            studentSelect.IsFinished          = STRING_EMPTY;
            studentSelect.Id = Login.userOverall.Id;

            pagination();
            StudentExamShow();
            this.pageSize.SelectedItem = "" + 10;

            this.studentDataGridView.CellFormatting   += new DataGridViewCellFormattingEventHandler(StudentDataGridViewCellFormatting);
            this.studentDataGridView.CellContentClick += new DataGridViewCellEventHandler(StudentDataGridViewCellContentClick);
            this.frontPage.Click               += new EventHandler(FrontPageClick);
            this.nextPage.Click                += new EventHandler(NextPageClick);
            this.finishedExam.Click            += new EventHandler(FinishedExamClick);
            this.unFinishedExam.Click          += new EventHandler(UnFinishedClick);
            this.allExam.Click                 += new EventHandler(AllExamClick);
            this.nameSort.Click                += new EventHandler(SortClick);
            this.sortId.Click                  += new EventHandler(SortClick);
            this.sortEffectiveTime.Click       += new EventHandler(SortClick);
            this.sortPassCriteria.Click        += new EventHandler(SortClick);
            this.sortExamScore.Click           += new EventHandler(SortClick);
            this.sortOperation.Click           += new EventHandler(SortClick);
            this.pageSize.SelectedValueChanged += new EventHandler(PageSizeSelectedValueChanged);
            this.toSelectPage.KeyPress         += new KeyPressEventHandler(ToSelectPageKeyPress);
            this.go.Click += new EventHandler(GoClick);
        }
コード例 #2
0
        /// <summary>
        /// In testing page init
        /// </summary>
        public Testing(Exam exam)
        {
            InitializeComponent();
            studentExamManage = new StudentExamManage();
            tempExam          = exam;
            currentExamId     = exam.Id;

            this.StartPosition     = FormStartPosition.CenterScreen;
            this.examCareful.Text += exam.QuestionPoints + " points each.";
            this.questionNum.Text  = (flag + 1).ToString();

            IntoContent(flag);
            TimerToStart();

            this.windowClose.Click  += new EventHandler(WindowCloseClick);
            this.windowStatus.Click += new EventHandler(WindowStatusClick);
            this.windowMin.Click    += new EventHandler(WindowMinClick);
            this.head.MouseDown     += new MouseEventHandler(HeadMouseDown);
            this.head.MouseMove     += new MouseEventHandler(HeadMouseMove);
            this.timer1.Tick        += new EventHandler(RestTimeTick);
            this.choiceACheck.Click += new EventHandler(ChoiceCheckClick);
            this.choiceBCheck.Click += new EventHandler(ChoiceCheckClick);
            this.choiceCCheck.Click += new EventHandler(ChoiceCheckClick);
            this.choiceDCheck.Click += new EventHandler(ChoiceCheckClick);
            this.nextQuesion.Click  += new EventHandler(NextQuesionClick);
        }
コード例 #3
0
        /// <summary>
        /// Student home entity
        /// </summary>
        public StudentHome()
        {
            InitializeComponent();
            studentExam = new StudentExamManage();

            this.noticeContent.Dock    = DockStyle.Fill;
            this.noticeContent.Visible = true;

            InitNotice();

            notice.Click            += new EventHandler(NoticeClick);
            about.Click             += new EventHandler(AboutClick);
            examnationRules.Click   += new EventHandler(ExamnationRulesClick);
            systemInformation.Click += new EventHandler(SystemInformationClick);
            contactUs.Click         += new EventHandler(ContactUsClick);
        }
コード例 #4
0
ファイル: ToExam.cs プロジェクト: daiqun/shixi
        /// <summary>
        /// To exam page init
        /// </summary>
        public ToExam(StudentPlat studentPlat, int currentId)
        {
            InitializeComponent();
            studentExamManage = new StudentExamManage();

            currentExamId   = currentId;
            studentPlatTemp = studentPlat;
            ExamInfoShow();

            this.StartPosition = FormStartPosition.CenterScreen;

            this.windowClose.Click  += new EventHandler(WindowCloseClick);
            this.windowStatus.Click += new EventHandler(WindowStatusClick);
            this.windowMin.Click    += new EventHandler(WindowMinClick);
            this.head.MouseDown     += new MouseEventHandler(HeadMouseDown);
            this.head.MouseMove     += new MouseEventHandler(HeadMouseMove);
            this.startTest.Click    += new EventHandler(StartTestClick);
            this.timer1.Tick        += new EventHandler(StartTheExam);
            this.returnBtn.Click    += new EventHandler(ReturnBtnClick);
        }