Esempio n. 1
0
        private void s_mainForm_Load(object sender, EventArgs e)
        {
            this.Owner.Hide();
            //将窗体背景默认设为灰色
            this.BackColor = Color.FromArgb(211, 211, 211);
            //显示登录名
            label1.Text      = "你好," + Program.loginName + "同学";
            label1.BackColor = Color.FromArgb(255, 255, 255);

            queryDepartment = new QueryDepartment();
            queryTeacher    = new QueryTeacher();
            queryStudent    = new QueryStudent();
            queryClass      = new QueryClass();
            queryGrade      = new QueryGrade();
            electiveCourse  = new ElectiveCourse();
            gradeStatistics = new GradeStatistics();
        }
Esempio n. 2
0
        private void t_mainForm_Load(object sender, EventArgs e)
        {
            this.Owner.Hide();
            //将窗体背景默认设为灰色
            this.BackColor = Color.FromArgb(211, 211, 211);
            //显示登录名
            label1.Text      = "您好," + Program.loginName + "老师";
            label1.BackColor = Color.FromArgb(255, 255, 255);

            queryDepartment    = new QueryDepartment();
            queryTeacher       = new QueryTeacher();
            queryStudent       = new QueryStudent();
            queryClass         = new QueryClass();
            queryGrade         = new QueryGrade();
            registrationGrade  = new RegistrationGrade();
            gradeStatistics    = new GradeStatistics();
            retakeTest         = new RetakeTest();
            workloadStatistics = new WorkloadStatistics();
        }