Beispiel #1
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            switch (mBasePage.mStage)
            {
            case Stage.InterPrac:
                mBasePage.mRecorder.mathPracOn.Add(
                    mBasePage.mTimeline.ElapsedMilliseconds);
                break;

            case Stage.ComprehPrac:
                mBasePage.mRecorder.mathOn.Add(
                    mBasePage.mTimeline.ElapsedMilliseconds);

                mBasePage.mRecorder.spanWidth.Add(
                    BasePage.mPracScheme[mBasePage.mCurSchemeAt]);

                mBasePage.mRecorder.groupNum.Add(
                    mBasePage.GetGroupAtInSpan(
                        mBasePage.mCurSchemeAt, BasePage.mPracScheme));
                break;

            case Stage.Formal:
                mBasePage.mRecorder.mathOn.Add(
                    mBasePage.mTimeline.ElapsedMilliseconds);

                mBasePage.mRecorder.spanWidth.Add(
                    BasePage.mTestScheme[mBasePage.mCurSchemeAt]);

                mBasePage.mRecorder.groupNum.Add(
                    mBasePage.GetGroupAtInSpan(
                        mBasePage.mCurSchemeAt, BasePage.mTestScheme));
                break;
            }
        }
Beispiel #2
0
        private void fillJumpedAllOK(int schemeIDX)
        {
            for (int i = 0; i < BasePage.mTestScheme[schemeIDX]; i++)
            {
                mBasePage.mRecorder.mathExpression.Add(mBasePage.mTest[schemeIDX].mTrails[i].equation);
                mBasePage.mRecorder.mathOn.Add(0);
                mBasePage.mRecorder.mathOff.Add(0);
                mBasePage.mRecorder.mathDure.Add(0);
                mBasePage.mRecorder.displayedAnswer.Add(mBasePage.mTest[schemeIDX].mTrails[i].result);
                mBasePage.mRecorder.choice.Add("pass");
                mBasePage.mRecorder.correctness.Add(true);
                mBasePage.mRecorder.choiceShowTime.Add(0);
                mBasePage.mRecorder.choiceMadeTime.Add(0);
                mBasePage.mRecorder.choiceDure.Add(0);
                mBasePage.mRecorder.animal.Add(mBasePage.mTest[schemeIDX].mTrails[i].memTarget);
                mBasePage.mRecorder.isExtra.Add(true);
                mBasePage.mRecorder.isPractise.Add(false);
                mBasePage.mRecorder.spanWidth.Add(BasePage.mTestScheme[schemeIDX]);
                mBasePage.mRecorder.groupNum.Add(mBasePage.GetGroupAtInSpan(schemeIDX, BasePage.mTestScheme));
                mBasePage.mRecorder.isOvertime.Add(false);
                mBasePage.mRecorder.inGroupNum.Add(mBasePage.mCurInGrpAt);
                mBasePage.mRecorder.equaLv.Add(mBasePage.mTest[schemeIDX].mTrails[i].equationLevel);
            }

            mBasePage.mRecorder.spanWidthG.Add(BasePage.mTestScheme[schemeIDX]);
            mBasePage.mRecorder.groupNumG.Add(mBasePage.GetGroupAtInSpan(schemeIDX, BasePage.mTestScheme));
            mBasePage.mRecorder.isExtraG.Add(true);
            mBasePage.mRecorder.isPractiseG.Add(false);
            mBasePage.mRecorder.orderOn.Add(0);
            mBasePage.mRecorder.orderOff.Add(0);
            mBasePage.mRecorder.orderDure.Add(0);
            string rightOrder = "";

            for (int i = 0; i < mBasePage.mTest[schemeIDX].mTrails.Count; i++)
            {
                rightOrder += mBasePage.mTest[schemeIDX].mTrails[i].memTarget;
            }
            mBasePage.mRecorder.rightOrder.Add(rightOrder);
            mBasePage.mRecorder.userInputOrder.Add("pass");
        }
Beispiel #3
0
        public void Run()
        {
            switch (mBasePage.mStage)
            {
            case Stage.ComprehPrac:
                amLabNum.Content = "[" + BasePage.mPracScheme[mBasePage.mCurSchemeAt] +
                                   "-" + (mBasePage.GetGroupAtInSpan(mBasePage.mCurSchemeAt, BasePage.mPracScheme) + 1) + "]";
                break;

            case Stage.Formal:
                amLabNum.Content = "[" + BasePage.mTestScheme[mBasePage.mCurSchemeAt] +
                                   "-" + (mBasePage.GetGroupAtInSpan(mBasePage.mCurSchemeAt, BasePage.mTestScheme) + 1) + "]";
                break;
            }

            Timer tCP = new Timer();

            tCP.Interval  = 1500;
            tCP.AutoReset = false;
            tCP.Elapsed  += new ElapsedEventHandler(tCP_Elapsed);
            tCP.Enabled   = true;
        }