Esempio n. 1
0
        private void label3_MouseUp(object sender, MouseButtonEventArgs e)
        {
            mBasePage.ClearAll();
            Timer t = new Timer();

            t.Interval  = 1000;
            t.AutoReset = false;
            t.Elapsed  += new ElapsedEventHandler(t_Elapsed);
            t.Enabled   = true;
        }
Esempio n. 2
0
        void nexBlankMask()
        {
            mBasePage.ClearAll();

            if (mBasePage.ARCTYPE == SECOND_ARCHI_TYPE.SYMMSPAN)
            {
                mChess.ClearAllShown();
                amGrid.Children.Remove(mChess);
                mBasePage.amBaseCanvas.Children.Add(mChess);
                Canvas.SetTop(mChess, FEITStandard.PAGE_BEG_Y + ((FEITStandard.PAGE_HEIGHT - 268) / 2));
                Canvas.SetLeft(mChess, FEITStandard.PAGE_BEG_X + ((FEITStandard.PAGE_WIDTH - 268) / 2));
            }

            Timer tb = new Timer();

            tb.Interval  = 250;
            tb.AutoReset = false;
            tb.Elapsed  += new ElapsedEventHandler(tb_Elapsed_go_out);
            tb.Enabled   = true;
        }
Esempio n. 3
0
        void goOut()
        {
            long offTime = mBasePage.mTimeline.ElapsedMilliseconds;

            mLimit.Enabled = false;
            switch (mBasePage.mStage)
            {
            case Stage.InterPrac:
                mBasePage.mRecorder.mathPracOff.Add(offTime);
                mBasePage.mRecorder.mathPracRTs.Add(
                    offTime - mBasePage.mRecorder.mathPracOn[
                        mBasePage.mRecorder.mathPracOn.Count - 1]);

                break;

            case Stage.ComprehPrac:
                mBasePage.mRecorder.mathOff.Add(offTime);
                mBasePage.mRecorder.mathDure.Add(
                    offTime - mBasePage.mRecorder.mathOn[
                        mBasePage.mRecorder.mathOn.Count - 1]);
                break;

            case Stage.Formal:
                mBasePage.mRecorder.mathOff.Add(offTime);
                mBasePage.mRecorder.mathDure.Add(
                    offTime - mBasePage.mRecorder.mathOn[
                        mBasePage.mRecorder.mathOn.Count - 1]);
                break;
            }
            //blank mask and
            //show judge page
            mBasePage.ClearAll();
            Timer t = new Timer();

            t.Interval  = 250;
            t.AutoReset = false;
            t.Elapsed  += new ElapsedEventHandler(t_Elapsed);
            t.Enabled   = true;
        }