コード例 #1
0
        private void FormExamSubject_Load(object sender, EventArgs e)
        {
            //if (Site.DesignMode) return;

            RatingUtils.DisableControls(this);
            RatingUtils.SetSemesterDefaultItems(cboSchoolYear, cboSemester);
            Sems = new SemesterSelector(cboSchoolYear, cboSemester);
            Sems.SemesterChanged += new EventHandler(Sems_SemesterChanged);
            RefreshSubjectOptions();
            RatingUtils.EnableControls(this);
        }
コード例 #2
0
        private void FormExamSubject_Load(object sender, EventArgs e)
        {
            //if (Site.DesignMode) return;

            RatingUtils.DisableControls(this);
            RatingUtils.SetSemesterDefaultItems(cboSchoolYear, cboSemester);
            RatingUtils.SetExamDefaultItems(cboExam);
            Sems = new SemesterSelector(cboSchoolYear, cboSemester);
            Sems.SemesterChanged += new EventHandler(Sems_SemesterChanged);

            int t1 = Environment.TickCount;

            IncludeQuery = new AEIncludeQuery();
            Console.WriteLine(string.Format("new AEIncludeQuery() Time:{0}", Environment.TickCount - t1));

            t1 = Environment.TickCount;
            if (cboExam.Items.Count > 0)
            {
                cboExam.SelectedIndex = 0;
            }
            Console.WriteLine(string.Format("cboExam.SelectedIndex Time:{0}", Environment.TickCount - t1));

            RatingUtils.EnableControls(this);
        }