private void RotDir(String RotDirnum, String s, OrganizerTrailCubes orga) { switch (s)// 原版 R与bottom back true变false false 变true { case "L": RotDisplay(RotDirnum, "left", true); break; case "Li": RotDisplay(RotDirnum, "left", false); break; case "R": RotDisplay(RotDirnum, "right", false); break; case "Ri": RotDisplay(RotDirnum, "right", true); break; case "U": RotDisplay(RotDirnum, "top", true); break; case "Ui": RotDisplay(RotDirnum, "top", false); break; case "D": RotDisplay(RotDirnum, "bottom", false); break; case "Di": RotDisplay(RotDirnum, "bottom", true); break; case "F": RotDisplay(RotDirnum, "front", true); break; case "Fi": RotDisplay(RotDirnum, "front", false); break; case "B": RotDisplay(RotDirnum, "back", false); break; case "Bi": RotDisplay(RotDirnum, "back", true); break; } }
private void optionTest(int ins, String instand, String s2, OrganizerTrailCubes orga) { switch (s2) { case "1": orga.SetSelectionGraph(ins, instand, FiveElementsIntTest.Properties.Resources.ArrowTexUp); break; case "2": orga.SetSelectionGraph(ins, instand, FiveElementsIntTest.Properties.Resources.ArrowTexDown); break; case "3": orga.SetSelectionGraph(ins, instand, FiveElementsIntTest.Properties.Resources.ArrowTexLeft); break; case "4": orga.SetSelectionGraph(ins, instand, FiveElementsIntTest.Properties.Resources.ArrowTexRight); break; case "5": orga.SetSelectionGraph(ins, instand, FiveElementsIntTest.Properties.Resources.CIRCLE); break; } }
private void nextStep()//页面显示流程 { if (line_num_count < line_num) { if (mFirstTime) { ClearAll(); orga = new OrganizerTrailCubes(this); mFirstTime = false; } if (wrong_count >= 3) { wrongTestOver(); } if (wrong_count < 3 && hide_count >= 2) { _isDisplayhide = false; } if (_isDisplayhide && wrong_count < 3) { nextQuestionLabel(); mBaseCanvas.Children.Remove(tip_display); tipDisplay(); orga.optEnable = true; orga.clearSeSelGraphs(); Question_test.Clear(); hide_count++; loadTest(); orga.CubeLayout(); //_flash_Display.Start(); // t_Display.Start(); } else if (!_isDisplayhide && wrong_count < 3) { nextQuestionLabel(); if (line_num_count == line_num - 2) { nextQuestion.Content = "测试结束"; nextQuestion.Width = 130; } //keyTimeTrigger();//总体计时器 mBaseCanvas.Children.Remove(tip_display); tipDisplay(); orga.optEnable = true; orga.clearSeSelGraphs(); Question_test.Clear(); line_num_count++; loadTest(); orga.CubeLayout(); //_flash_Display.Start(); // t_Display.Start(); } } else { mTimer.Stop(); //t_Display.Close(); outPutresult(); tf.Close(); ClearAll(); ClearArrayList(); laodReport(); } }