private void SetUp()
        {
            if (Program.mGroup.Equals("SINHVIEN"))
            {
                StudentInfo studentInfo = SqlRequestFunction.GetStudentInfo(Program.studentCode);

                this.lbl_StudentCode.Text = Program.studentCode;
                this.lbl_StudentName.Text = studentInfo.FullName;
                this.lbl_ClassCode.Text   = studentInfo.ClassCode;
                this.lbl_ClassName.Text   = studentInfo.ClassName;
            }

            this.dtp_DateExam.MinDate = DateTime.Now;
            DateTime currentDateTime = DateTime.Now;

            this.dtp_DateExam.MaxDate = currentDateTime.AddDays(60);

            this.grb_StartExam.Visible = false;
        }
Ejemplo n.º 2
0
        private void SetUp()
        {
            if (Program.mGroup.Equals("SINHVIEN"))
            {
                StudentInfo studentInfo = SqlRequestFunction.GetStudentInfo(Program.username);

                this.lbl_StudentCode.Text = Program.username;
                this.lbl_StudentName.Text = studentInfo.FullName;
                this.lbl_ClassCode.Text   = studentInfo.ClassCode;
                this.lbl_ClassName.Text   = studentInfo.ClassName;
            }

            this.dtp_DateExam.MinDate = DateTime.Now;
            DateTime currentDateTime = DateTime.Now;

            this.dtp_DateExam.MaxDate = currentDateTime.AddDays(60);

            this.grb_StartExam.Visible = false;

            string x      = this.cmb_Course.SelectedValue.ToString();
            String nameMH = SqlRequestFunction.GetTenMH(x);

            this.txtMH.Text = nameMH;
        }