private void Guide_Loaded(object sender, RoutedEventArgs e) { Intertions.SetIntervention(null); Task totalGuide = new Task(() => { //模拟工作过程 Thread.Sleep(500); Action TopTextGuideAction = new Action(ShowTopGuide); Dispatcher.BeginInvoke(TopTextGuideAction); Thread.Sleep(4000); Action QueTextGuideAction = new Action(ShowQueGuide); Dispatcher.BeginInvoke(QueTextGuideAction); Thread.Sleep(4000); Action InterTextGuideAction = new Action(ShowInterGuide); Dispatcher.BeginInvoke(InterTextGuideAction); Thread.Sleep(4000); Action HideTextGuideAction = new Action(HideTextGuide); Dispatcher.BeginInvoke(HideTextGuideAction); Thread.Sleep(4000); Action SetGuideBFAction = new Action(SetGuideBF); Dispatcher.BeginInvoke(SetGuideBFAction); Thread.Sleep(5000); Action PlayQueSoundAction = new Action(PlayQueAudio); Dispatcher.BeginInvoke(PlayQueSoundAction); }); totalGuide.Start(); }
//进入下一题 internal void ToNextQue(Record record = null) { if (record != null) { //记录当前答案 SubmitTmp(record); } Intertions.SetIntervention(null); ToQuestionN(currentQn + 1); currentQn++; }
private void Btn_Submit_Click(object sender, RoutedEventArgs e) { if (submitTime == 0) { submitTime++; GuideText.Text = "E选项为错误答案,您可以查看下方第一次提示信息,重新作出选择,这次请选择B"; rb_opt2.IsChecked = true; Intertions.SetIntervention(Interventions[0]); } else { GuideText.Text = "恭喜回答正确!下方提示区域将显示所有四次提示内容,可前后翻阅查看"; Intertions.SetInterventions(Interventions.ToArray()); Btn_Submit.Visibility = Visibility.Hidden; Btn_Next.Visibility = Visibility.Visible; } }
internal void InterShow(Intervention inter) { Intertions.SetIntervention(inter); }