void tb_Elapsed_go_out(object sender, ElapsedEventArgs e) { if (mBasePage.mStage == Stage.ComprehPrac || mBasePage.mStage == Stage.Formal) { mBasePage.mRecorder.inGroupNum.Add(mBasePage.mCurInGrpAt); } mBasePage.DoCursorIteration(); switch (mBasePage.mStage) { case Stage.MemPrac: if (!mBasePage.SchemeIterated()) // { mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowBoardAnimal)); } else //Scheme Iterated { mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowOrderSelectPage)); } break; case Stage.ComprehPrac: if (!mBasePage.SchemeIterated()) // { mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowEquationPage)); } else //Scheme Iterated { mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowOrderSelectPage)); } break; case Stage.Formal: if (!mBasePage.SchemeIterated()) // { mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowEquationPage)); } else //Scheme Iterated { mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowOrderSelectPage)); } break; } }
void t_mask_Elapsed(object sender, ElapsedEventArgs e) { switch (mBasePage.mStage) { case Stage.InterPrac: //iter & go out mBasePage.DoCursorIteration(); if (mBasePage.mCurInGrpAt != mBasePage.mInterPrac.Count) { mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowEquationPage)); } else { //go to compreh practise mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowInstructionComprehPrac)); } break; case Stage.ComprehPrac: if (mBasePage.SchemeReturned()) //end of span && end of scheme { //go to order UI mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowOrderSelectPage)); } else { //go to next animal mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowBoardAnimal)); } break; case Stage.Formal: if (mBasePage.SchemeReturned() || mBasePage.SchemeIterated()) //end of span || end of scheme { //go to order UI mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowOrderSelectPage)); } else { //go to next animal mBasePage.Dispatcher.Invoke(new TimeDele(mBasePage.ShowBoardAnimal)); } break; } }