示例#1
0
        private void FormTest_Load(object sender, EventArgs e)
        {
            status.Text             = "bình thường";
            metroLabelStat.Visible  = false;
            metroButtonExit.Visible = false;
            metroLabelStat.Visible  = false;
            LoadInfo();
            listQuestion = DataUlti.DSCauHoi(MaDeThi);
            listAnswer   = DataUlti.DSDapAn(MaDeThi);

            timer1.Tick += Timer1_Tick;
            timer1.Start();

            answerCount = listAnswer.Count / 4;
            for (int i = 0; i < answerCount; i++)
            {
                metroComboBoxQuestion.Items.Add((i + 1).ToString());
            }

            metroLabelProgress.Text             = string.Format("Đã hoàn thành: {0}/{1}", 0, answerCount);
            metroComboBoxQuestion.SelectedIndex = 0;

            metroLabelHint.Visible  = false;
            metroLabelHint2.Visible = false;

            Reload(test);
            showSpoil = true;
        }
示例#2
0
        public FormTest()
        {
            InitializeComponent();
            MHS     = "1612030009";
            MaDeThi = "MH01120001";
            MaKyThi = "CK201801MH01";

            metroLabelStat.Visible  = false;
            metroButtonExit.Visible = false;
            metroLabelStat.Visible  = false;

            listQuestion = DataUlti.DSCauHoi(MaDeThi);
            listAnswer   = DataUlti.DSDapAn(MaDeThi);

            answerCount = listAnswer.Count / 4;
            for (int i = 0; i < answerCount; i++)
            {
                metroComboBoxQuestion.Items.Add((i + 1).ToString());
            }

            metroLabelProgress.Text             = string.Format("Đã hoàn thành: {0}/{1}", 0, answerCount);
            metroComboBoxQuestion.SelectedIndex = 0;
            Reload(test);
        }