Exemple #1
0
 public MainForm()
 {
     int num;
     this.components = null;
     this.IsPassageMP3 = false;
     this.CurrentReadingStep = 0;
     this.PreFormHeight = 0x268;
     this.PreFormWidth = 0x31a;
     this.CurrentTPOPage = 1;
     this.TPONO = 0;
     this.PassageNO = 0;
     this.PartNO = 0;
     this.QuestionNO = 0;
     this.RSpiltQuestionNO = 0;
     this.ReviewSelectedQuestionNO = -1;
     this.TestMode = 0;
     this.PartCount = 0;
     this.PassageCount = 0;
     this.QuestionCount = 0;
     this.PassageLastQuestionIndex = 0;
     this.PartLastPassageIndex = 0;
     this.InsertSetenceRtf = "";
     this.PreInsertPosition = -1;
     this.MP3Player = new MP3MCI();
     this.IsRepeated = false;
     this.IsQuestionAfter = false;
     this.HasLoadMP3 = false;
     this.CurrentSpeakingStep = 0;
     this.CurrentWritingStep = 0;
     this.BtnLoadTest = new Button[0x3d];
     this.CkbReading = new CheckBox[8];
     this.RtbReadingAnswers = new RichTextBox[8];
     this.CkbSummary = new CheckBox[10];
     this.CkbSummarySelected = new CheckBox[5];
     this.RtbSumAnswersToBeSelected = new RichTextBox[10];
     this.RtbSumSelected = new RichTextBox[5];
     this.SummarySelectedAnswerIndex = -1;
     this.ShowPassage = false;
     this.SummarySelectedAnswers = new int[5];
     this.LCkbAnswers = new CheckBox[8];
     this.LRtbAnswers = new RichTextBox[8];
     this.LRtbTableRow = new RichTextBox[9];
     this.LRtbTableCol = new RichTextBox[5];
     this.LCkbTable = new CheckBox[9][];
     this.IsPause = false;
     this.LOADLASTQUESTION = false;
     this.HasClickedNext = false;
     this.ReadingPassageNo = 1;
     this.CONTINUECLICKED = false;
     this.TotalScore = 0;
     this.RightAnsweredQuestions = 0;
     this.WrongAnsweredQuestions = 0;
     this.NotAnsweredQuestions = 0;
     this.TotalQuestions = 0;
     this.IBTScore = 0;
     this.EXP = new ExplanationUI();
     this.TRANSUI = new TranslationUI();
     this.CurrentReadingPassage = 1;
     this.InitializeComponent();
     this.PreFormHeight = base.Height;
     this.PreFormWidth = base.Width;
     base.WindowState = FormWindowState.Maximized;
     this.CkbReading[0] = this.ckb_A;
     this.CkbReading[1] = this.ckb_B;
     this.CkbReading[2] = this.ckb_C;
     this.CkbReading[3] = this.ckb_D;
     this.CkbReading[4] = this.ckb_E;
     this.CkbReading[5] = this.ckb_F;
     this.CkbReading[6] = this.ckb_G;
     this.CkbReading[7] = this.ckb_H;
     this.LCkbAnswers[0] = this.lckb_A;
     this.LCkbAnswers[1] = this.lckb_B;
     this.LCkbAnswers[2] = this.lckb_C;
     this.LCkbAnswers[3] = this.lckb_D;
     this.LCkbAnswers[4] = this.lckb_E;
     this.LCkbAnswers[5] = this.lckb_F;
     this.LCkbAnswers[6] = this.lckb_G;
     this.LCkbAnswers[7] = this.lckb_H;
     this.RtbReadingAnswers[0] = this.rtb_answerA;
     this.RtbReadingAnswers[1] = this.rtb_answerB;
     this.RtbReadingAnswers[2] = this.rtb_answerC;
     this.RtbReadingAnswers[3] = this.rtb_answerD;
     this.RtbReadingAnswers[4] = this.rtb_answerE;
     this.RtbReadingAnswers[5] = this.rtb_answerF;
     this.RtbReadingAnswers[6] = this.rtb_answerG;
     this.RtbReadingAnswers[7] = this.rtb_answerH;
     this.LRtbAnswers[0] = this.lrtb_answerA;
     this.LRtbAnswers[1] = this.lrtb_answerB;
     this.LRtbAnswers[2] = this.lrtb_answerC;
     this.LRtbAnswers[3] = this.lrtb_answerD;
     this.LRtbAnswers[4] = this.lrtb_answerE;
     this.LRtbAnswers[5] = this.lrtb_answerF;
     this.LRtbAnswers[6] = this.lrtb_answerG;
     this.LRtbAnswers[7] = this.lrtb_answerH;
     for (num = 0; num < 9; num++)
     {
         this.LCkbTable[num] = new CheckBox[5];
         for (int i = 0; i < 5; i++)
         {
             this.LCkbTable[num][i] = new CheckBox();
         }
     }
     this.LCkbTable[0][0] = this.lckbTable11;
     this.LCkbTable[0][1] = this.lckbTable12;
     this.LCkbTable[0][2] = this.lckbTable13;
     this.LCkbTable[0][3] = this.lckbTable14;
     this.LCkbTable[0][4] = this.lckbTable15;
     this.LCkbTable[1][0] = this.lckbTable21;
     this.LCkbTable[1][1] = this.lckbTable22;
     this.LCkbTable[1][2] = this.lckbTable23;
     this.LCkbTable[1][3] = this.lckbTable24;
     this.LCkbTable[1][4] = this.lckbTable25;
     this.LCkbTable[2][0] = this.lckbTable31;
     this.LCkbTable[2][1] = this.lckbTable32;
     this.LCkbTable[2][2] = this.lckbTable33;
     this.LCkbTable[2][3] = this.lckbTable34;
     this.LCkbTable[2][4] = this.lckbTable35;
     this.LCkbTable[3][0] = this.lckbTable41;
     this.LCkbTable[3][1] = this.lckbTable42;
     this.LCkbTable[3][2] = this.lckbTable43;
     this.LCkbTable[3][3] = this.lckbTable44;
     this.LCkbTable[3][4] = this.lckbTable45;
     this.LCkbTable[4][0] = this.lckbTable51;
     this.LCkbTable[4][1] = this.lckbTable52;
     this.LCkbTable[4][2] = this.lckbTable53;
     this.LCkbTable[4][3] = this.lckbTable54;
     this.LCkbTable[4][4] = this.lckbTable55;
     this.LCkbTable[5][0] = this.lckbTable61;
     this.LCkbTable[5][1] = this.lckbTable62;
     this.LCkbTable[5][2] = this.lckbTable63;
     this.LCkbTable[5][3] = this.lckbTable64;
     this.LCkbTable[5][4] = this.lckbTable65;
     this.LCkbTable[6][0] = this.lckbTable71;
     this.LCkbTable[6][1] = this.lckbTable72;
     this.LCkbTable[6][2] = this.lckbTable73;
     this.LCkbTable[6][3] = this.lckbTable74;
     this.LCkbTable[6][4] = this.lckbTable75;
     this.LCkbTable[7][0] = this.lckbTable81;
     this.LCkbTable[7][1] = this.lckbTable82;
     this.LCkbTable[7][2] = this.lckbTable83;
     this.LCkbTable[7][3] = this.lckbTable84;
     this.LCkbTable[7][4] = this.lckbTable85;
     this.LCkbTable[8][0] = this.lckbTable91;
     this.LCkbTable[8][1] = this.lckbTable92;
     this.LCkbTable[8][2] = this.lckbTable93;
     this.LCkbTable[8][3] = this.lckbTable94;
     this.LCkbTable[8][4] = this.lckbTable95;
     this.LRtbTableRow[0] = this.lrtbTableRow1;
     this.LRtbTableRow[1] = this.lrtbTableRow2;
     this.LRtbTableRow[2] = this.lrtbTableRow3;
     this.LRtbTableRow[3] = this.lrtbTableRow4;
     this.LRtbTableRow[4] = this.lrtbTableRow5;
     this.LRtbTableRow[5] = this.lrtbTableRow6;
     this.LRtbTableRow[6] = this.lrtbTableRow7;
     this.LRtbTableRow[7] = this.lrtbTableRow8;
     this.LRtbTableRow[8] = this.lrtbTableRow9;
     this.LRtbTableCol[0] = this.lrtbTableCol1;
     this.LRtbTableCol[1] = this.lrtbTableCol2;
     this.LRtbTableCol[2] = this.lrtbTableCol3;
     this.LRtbTableCol[3] = this.lrtbTableCol4;
     this.LRtbTableCol[4] = this.lrtbTableCol5;
     for (num = 0; num < 8; num++)
     {
         this.RtbReadingAnswers[num].TextChanged += new EventHandler(this.RtbAnswers_TextChanged);
         this.CkbReading[num].CheckedChanged += new EventHandler(this.Ckb_CheckedChanged);
         this.LCkbAnswers[num].CheckedChanged += new EventHandler(this.Ckb_CheckedChanged);
     }
     this.CkbSummary[0] = this.ckb_sumAnswer1;
     this.CkbSummary[1] = this.ckb_sumAnswer2;
     this.CkbSummary[2] = this.ckb_sumAnswer3;
     this.CkbSummary[3] = this.ckb_sumAnswer4;
     this.CkbSummary[4] = this.ckb_sumAnswer5;
     this.CkbSummary[5] = this.ckb_sumAnswer6;
     this.CkbSummary[6] = this.ckb_sumAnswer7;
     this.CkbSummary[7] = this.ckb_sumAnswer8;
     this.CkbSummary[8] = this.ckb_sumAnswer9;
     this.CkbSummary[9] = this.ckb_sumAnswer10;
     this.RtbSumAnswersToBeSelected[0] = this.rtb_sumAnswer1;
     this.RtbSumAnswersToBeSelected[1] = this.rtb_sumAnswer2;
     this.RtbSumAnswersToBeSelected[2] = this.rtb_sumAnswer3;
     this.RtbSumAnswersToBeSelected[3] = this.rtb_sumAnswer4;
     this.RtbSumAnswersToBeSelected[4] = this.rtb_sumAnswer5;
     this.RtbSumAnswersToBeSelected[5] = this.rtb_sumAnswer6;
     this.RtbSumAnswersToBeSelected[6] = this.rtb_sumAnswer7;
     this.RtbSumAnswersToBeSelected[7] = this.rtb_sumAnswer8;
     this.RtbSumAnswersToBeSelected[8] = this.rtb_sumAnswer9;
     this.RtbSumAnswersToBeSelected[9] = this.rtb_sumAnswer10;
     for (num = 0; num < 10; num++)
     {
         this.RtbSumAnswersToBeSelected[num].TextChanged += new EventHandler(this.RtbAnswers_TextChanged);
         this.CkbSummary[num].CheckedChanged += new EventHandler(this.CkbSummary_CheckedChanged);
     }
     this.CkbSummarySelected[0] = this.ckb_SumSelected1;
     this.CkbSummarySelected[1] = this.ckb_SumSelected2;
     this.CkbSummarySelected[2] = this.ckb_SumSelected3;
     this.CkbSummarySelected[3] = this.ckb_SumSelected4;
     this.CkbSummarySelected[4] = this.ckb_SumSelected5;
     this.RtbSumSelected[0] = this.rtb_SumSelected1;
     this.RtbSumSelected[1] = this.rtb_SumSelected2;
     this.RtbSumSelected[2] = this.rtb_SumSelected3;
     this.RtbSumSelected[3] = this.rtb_SumSelected4;
     this.RtbSumSelected[4] = this.rtb_SumSelected5;
     for (num = 0; num < 5; num++)
     {
         this.RtbSumSelected[num].Click += new EventHandler(this.RtbSumSelected_Click);
         this.RtbSumSelected[num].TextChanged += new EventHandler(this.RtbAnswers_TextChanged);
         this.CkbSummarySelected[num].CheckedChanged += new EventHandler(this.CkbSummarySelected_CheckedChanged);
     }
     this.rtb_question.TextChanged += new EventHandler(this.RtbAnswers_TextChanged);
     this.rtb_sumQuestion.TextChanged += new EventHandler(this.RtbAnswers_TextChanged);
     this.BtnLoadTest[1] = this.btn_LoadReading01;
     this.BtnLoadTest[2] = this.btn_LoadReading02;
     this.BtnLoadTest[3] = this.btn_LoadReading03;
     this.BtnLoadTest[4] = this.btn_LoadReading04;
     this.BtnLoadTest[5] = this.btn_LoadReading05;
     this.BtnLoadTest[6] = this.btn_LoadReading06;
     this.BtnLoadTest[7] = this.btn_LoadReading07;
     this.BtnLoadTest[8] = this.btn_LoadReading08;
     this.BtnLoadTest[9] = this.btn_LoadReading09;
     this.BtnLoadTest[10] = this.btn_LoadReading10;
     this.BtnLoadTest[11] = this.btn_LoadListening01;
     this.BtnLoadTest[12] = this.btn_LoadListening02;
     this.BtnLoadTest[13] = this.btn_LoadListening03;
     this.BtnLoadTest[14] = this.btn_LoadListening04;
     this.BtnLoadTest[15] = this.btn_LoadListening05;
     this.BtnLoadTest[0x10] = this.btn_LoadListening06;
     this.BtnLoadTest[0x11] = this.btn_LoadListening07;
     this.BtnLoadTest[0x12] = this.btn_LoadListening08;
     this.BtnLoadTest[0x13] = this.btn_LoadListening09;
     this.BtnLoadTest[20] = this.btn_LoadListening10;
     this.BtnLoadTest[0x15] = this.btn_LoadSpeaking01;
     this.BtnLoadTest[0x16] = this.btn_LoadSpeaking02;
     this.BtnLoadTest[0x17] = this.btn_LoadSpeaking03;
     this.BtnLoadTest[0x18] = this.btn_LoadSpeaking04;
     this.BtnLoadTest[0x19] = this.btn_LoadSpeaking05;
     this.BtnLoadTest[0x1a] = this.btn_LoadSpeaking06;
     this.BtnLoadTest[0x1b] = this.btn_LoadSpeaking07;
     this.BtnLoadTest[0x1c] = this.btn_LoadSpeaking08;
     this.BtnLoadTest[0x1d] = this.btn_LoadSpeaking09;
     this.BtnLoadTest[30] = this.btn_LoadSpeaking10;
     this.BtnLoadTest[0x1f] = this.btn_LoadWriting01;
     this.BtnLoadTest[0x20] = this.btn_LoadWriting02;
     this.BtnLoadTest[0x21] = this.btn_LoadWriting03;
     this.BtnLoadTest[0x22] = this.btn_LoadWriting04;
     this.BtnLoadTest[0x23] = this.btn_LoadWriting05;
     this.BtnLoadTest[0x24] = this.btn_LoadWriting06;
     this.BtnLoadTest[0x25] = this.btn_LoadWriting07;
     this.BtnLoadTest[0x26] = this.btn_LoadWriting08;
     this.BtnLoadTest[0x27] = this.btn_LoadWriting09;
     this.BtnLoadTest[40] = this.btn_LoadWriting10;
     this.BtnLoadTest[0x29] = this.btn_Review01;
     this.BtnLoadTest[0x2a] = this.btn_Review02;
     this.BtnLoadTest[0x2b] = this.btn_Review03;
     this.BtnLoadTest[0x2c] = this.btn_Review04;
     this.BtnLoadTest[0x2d] = this.btn_Review05;
     this.BtnLoadTest[0x2e] = this.btn_Review06;
     this.BtnLoadTest[0x2f] = this.btn_Review07;
     this.BtnLoadTest[0x30] = this.btn_Review08;
     this.BtnLoadTest[0x31] = this.btn_Review09;
     this.BtnLoadTest[50] = this.btn_Review10;
     this.BtnLoadTest[0x33] = this.btn_Answer01;
     this.BtnLoadTest[0x34] = this.btn_Answer02;
     this.BtnLoadTest[0x35] = this.btn_Answer03;
     this.BtnLoadTest[0x36] = this.btn_Answer04;
     this.BtnLoadTest[0x37] = this.btn_Answer05;
     this.BtnLoadTest[0x38] = this.btn_Answer06;
     this.BtnLoadTest[0x39] = this.btn_Answer07;
     this.BtnLoadTest[0x3a] = this.btn_Answer08;
     this.BtnLoadTest[0x3b] = this.btn_Answer09;
     this.BtnLoadTest[60] = this.btn_Answer10;
 }
Exemple #2
0
 private void btn_showexplanation_Click(object sender, EventArgs e)
 {
     this.EXP = new ExplanationUI();
     this.EXP.Show();
 }