Пример #1
0
 private void moUI_Button1_Click(object sender, EventArgs e)
 {
     if (QuestionControler.CurrentQuestionMod == QuestionControler.QuestionMod.大海捞针)
     {
         if (QuestionControler.Next_Mod_0())
         {
             MakePanelTextCover_IsShow(moUI_Panel1, false);
             MakePanelSwicth_IsSelect(moUI_Panel1, false, true, false);
             var temp = QuestionControler.GetMod_0Question();
             TextCover_1_Name._Text            = temp.Name;
             TextCover_1_Gender._Text          = temp.Gender;
             TextCover_1_Class._Text           = temp.Class;
             TextCover_1_Major._Text           = temp.Major;
             TextCover_1_PoliticalStatus._Text = temp.PoliticalStatus;
             TextCover_1_Nation._Text          = temp.Nation;
             TextCover_1_Post._Text            = temp.Post;
             TextCover_1_Address._Text         = temp.Address;
             TextCover_1_Dorm._Text            = temp.Dorm;
             TextCover_1_DormMember._Text      = temp.DormMember;
             TextCover_1_Economic._Text        = temp.Economic;
             TextCover_1_BonusAndPenalty._Text = temp.BonusAndPenalty;
             TextCover_1_Study._Text           = temp.Study;
             TextCover_1_Habby._Text           = temp.Habby;
             TextCover_1_Job._Text             = temp.Job;
             TextCover_1_Number._Text          = temp.Number;
             PictureBox1._Image = GetStudentPhoto(temp.PhotoPath);
             if (QuestionControler.QuestionMod_0 >= 2)
             {
                 moUI_Button1._Text = "下一个比赛项目";
             }
         }
         else
         {
             moUI_Button1._Text = "下一个";
             QuestionControler.QuestionMod_1 = -1;
             LoadQuestion2();
             moUI_Panel1.Visible = false;
             moUI_Panel2.Visible = true;
         }
     }
     else
     {
         if (QuestionControler.QuestionMod_1 < 3)
         {
             moUI_Panel1.Visible = false;
             LoadQuestion2();
             moUI_Panel2.Visible = true;
         }
         else
         {
             moUI_Panel1.Visible = false;
             moUI_Panel2.Visible = false;
             LoadQuestion3();
             moUI_Panel3.Visible = true;
         }
     }
 }
Пример #2
0
        private void LoadQuestion2()
        {
            moUI_Label1.IsSelected = false;
            moUI_Label2.IsSelected = true;
            moUI_Label3.IsSelected = false;
            QuestionControler.QuestionMod_1++;
            var t = QuestionControler.Get_1Question();

            CurrentIsTeacherStudentNumber = QuestionControler.GetCurrentIsTeacherStudentNumber();
            PictureBox2_0._Image          = GetStudentPhoto(t[0]);
            PictureBox2_1._Image          = GetStudentPhoto(t[1]);
            PictureBox2_2._Image          = GetStudentPhoto(t[2]);
            PictureBox2_3._Image          = GetStudentPhoto(t[3]);
            PictureBox2_4._Image          = GetStudentPhoto(t[4]);
            PictureBox2_5._Image          = GetStudentPhoto(t[5]);
        }
Пример #3
0
        private void LoadQuestion3()
        {
            moUI_Label1.IsSelected   = false;
            moUI_Label3.IsSelected   = true;
            moUI_Label2.IsSelected   = false;
            moUI_Switch15.IsSwitched = false;
            Sub3Socre = 10;
            MakePanelTextCover_IsShow(moUI_Panel3, false);
            var temp = QuestionControler.GetMod_2Question();

            TextCover_2_Name._Text            = temp.Name;
            TextCover_2_Gender._Text          = temp.Gender;
            TextCover_2_Class._Text           = temp.Class;
            TextCover_2_Major._Text           = temp.Major;
            TextCover_2_PoliticalStatus._Text = temp.PoliticalStatus;
            TextCover_2_Nation._Text          = temp.Nation;
            TextCover_2_Post._Text            = temp.Post;
            TextCover_2_Address._Text         = temp.Address;
            TextCover_2_Dorm._Text            = temp.Dorm;
            TextCover_2_DormMember._Text      = temp.DormMember;
            TextCover_2_Economic._Text        = temp.Economic;
            TextCover_2_BonusAndPenalty._Text = temp.BonusAndPenalty;
            TextCover_2_Study._Text           = temp.Study;
            TextCover_2_Habby._Text           = temp.Habby;
            TextCover_2_Job._Text             = temp.Job;
            TextCover_2_Number._Text          = temp.Number;
            Question3PhotoPath                  = temp.PhotoPath;
            moUI_Button3.Enabled                = false;
            moUI_PictureBox8._Image             = null;
            moUI_Button3._Text                  = "下一个";
            TextCover_2_Gender._IsShow          = QuestionControler.GetMod_2IsShow();
            TextCover_2_Class._IsShow           = QuestionControler.GetMod_2IsShow();
            TextCover_2_Major._IsShow           = QuestionControler.GetMod_2IsShow();
            TextCover_2_Dorm._IsShow            = QuestionControler.GetMod_2IsShow();
            TextCover_2_BonusAndPenalty._IsShow = QuestionControler.GetMod_2IsShow();
            TextCover_2_Economic._IsShow        = QuestionControler.GetMod_2IsShow();
            TextCover_2_Post._IsShow            = QuestionControler.GetMod_2IsShow();
            TextCover_2_Study._IsShow           = QuestionControler.GetMod_2IsShow();
            TextCover_2_Habby._IsShow           = QuestionControler.GetMod_2IsShow();
            TextCover_2_Job._IsShow             = QuestionControler.GetMod_2IsShow();
            TextCover_2_Number._IsShow          = QuestionControler.GetMod_2IsShow();
        }
Пример #4
0
 private void CheckQuestion2(int ans)
 {
     if (ans == CurrentIsTeacherStudentNumber)
     {
         moUI_Panel2.Visible = false;
         var temp = QuestionControler.GetCurrentStudentInfoStructMod1();
         TextCover_1_Name._Text            = temp.Name;
         TextCover_1_Gender._Text          = temp.Gender;
         TextCover_1_Class._Text           = temp.Class;
         TextCover_1_Major._Text           = temp.Major;
         TextCover_1_PoliticalStatus._Text = temp.PoliticalStatus;
         TextCover_1_Nation._Text          = temp.Nation;
         TextCover_1_Post._Text            = temp.Post;
         TextCover_1_Address._Text         = temp.Address;
         TextCover_1_Dorm._Text            = temp.Dorm;
         TextCover_1_DormMember._Text      = temp.DormMember;
         TextCover_1_Economic._Text        = temp.Economic;
         TextCover_1_BonusAndPenalty._Text = temp.BonusAndPenalty;
         TextCover_1_Study._Text           = temp.Study;
         TextCover_1_Habby._Text           = temp.Habby;
         TextCover_1_Number._Text          = temp.Number;
         TextCover_1_Job._Text             = temp.Job;
         PictureBox1._Image = GetStudentPhoto(temp.PhotoPath);
         MakePanelTextCover_IsShow(moUI_Panel1, false);
         MakePanelSwicth_IsSelect(moUI_Panel1, false, true, false);
         moUI_Panel1.Visible = true;
     }
     else
     {
         if (QuestionControler.QuestionMod_1 < 3)
         {
             LoadQuestion2();
         }
         else
         {
             moUI_Panel1.Visible = false;
             moUI_Panel2.Visible = false;
             LoadQuestion3();
             moUI_Panel3.Visible = true;
         }
     }
 }
Пример #5
0
 private void LoadTeacherAnswerMod()
 {
     try
     {
         Invoke((EventHandler) delegate
         {
             //Enabled = false;
         });
         if (CurrentSelectTeacherInfo.StudentList.Count <= 1)
         {
             return;
         }
         QuestionControler.Reset(CurrentSelectTeacherInfo);
         Invoke((EventHandler) delegate
         {
             moUI_Button3.Text                 = "下一个";
             CurrentSocre                      = 0;
             var temp                          = QuestionControler.GetMod_0Question();
             TextCover_1_Name._Text            = temp.Name;
             TextCover_1_Gender._Text          = temp.Gender;
             TextCover_1_Class._Text           = temp.Class;
             TextCover_1_Major._Text           = temp.Major;
             TextCover_1_PoliticalStatus._Text = temp.PoliticalStatus;
             TextCover_1_Nation._Text          = temp.Nation;
             TextCover_1_Post._Text            = temp.Post;
             TextCover_1_Address._Text         = temp.Address;
             TextCover_1_Dorm._Text            = temp.Dorm;
             TextCover_1_DormMember._Text      = temp.DormMember;
             TextCover_1_Economic._Text        = temp.Economic;
             TextCover_1_BonusAndPenalty._Text = temp.BonusAndPenalty;
             TextCover_1_Study._Text           = temp.Study;
             TextCover_1_Habby._Text           = temp.Habby;
             TextCover_1_Job._Text             = temp.Job;
             TextCover_1_Number._Text          = temp.Number;
             PictureBox1._Image                = GetStudentPhoto(temp.PhotoPath);
             moUI_Label1.IsSelected            = true;
             moUI_Button1._Text                = "下一个";
             foreach (var ctl in moUI_Panel1.Controls)
             {
                 if (ctl is MoUI_TextCover)
                 {
                     MoUI_TextCover c = (MoUI_TextCover)ctl;
                     c._IsShow        = false;
                     c.Invalidate();
                 }
                 if (ctl is MoUI_Switch)
                 {
                     MoUI_Switch c = (MoUI_Switch)ctl;
                     c.IsSwitched  = false;
                     c.Visible     = false;
                     c.Invalidate();
                 }
             }
             moUI_Panel1.Visible     = true;
             moUI_Panel2.Visible     = false;
             moUI_Panel3.Visible     = false;
             TotalTime               = 8 * 60;
             Timer_TotalTime.Enabled = true;
         });
     }
     catch
     { }
     finally
     {
         Invoke((EventHandler) delegate
         {
             //Enabled = true;
         });
     }
 }