Beispiel #1
0
        void putEmptyCellOn()
        {
            SubPageOrderSS sp_pos = new SubPageOrderSS(ref mPage, this);

            sp_pos.mCheckComponent.mTouchActivated = false;
            sp_pos.PutNumCheckToScreen(271, 160, 4, 4, 600, 240);
            ((UIGroupNumChecksSS)sp_pos.mCheckComponent).setPositionMode(true);
        }
Beispiel #2
0
        public void showOrderPage()
        {
            Mouse.OverrideCursor = Cursors.Hand;
            mPage.ClearAll();
            mOrderPage = new SubPageOrderSS(ref mPage, this);
            mOrderPage.Show();
            mPage.mRecorder.posOnTime.Add(mPage.mTimer.GetElapsedTime());

            //wait for order`s signal
        }
Beispiel #3
0
        public void showPosistionPage()
        {
            Mouse.OverrideCursor = Cursors.None;
            //record
            mPage.mRecorder.inters.Add(mContent[mGrpAt].Trails[mItemAt]);
            //mRecorder.segmentID.Add(mCurSpanAt + 1);

            SubPageOrderSS sp_pos = new SubPageOrderSS(ref mPage, this);

            sp_pos.mCheckComponent.mTouchActivated = false;
            sp_pos.PutNumCheckToScreen(271, 160, 4, 4, 600, 240);
            ((UIGroupNumChecksSS)sp_pos.mCheckComponent).setPositionMode(true);
            ((UIGroupNumChecksSS)sp_pos.mCheckComponent).setMarked(
                mContent[mGrpAt].Trails[mItemAt].Position);

            if (mItemAt == mContent[mGrpAt].Trails.Count - 1)
            {
                mfRoute = showOrderPage;
            }
            else
            {
                mfRoute = showSymmPage;
            }

            mItemAt++;

            Timer t = new Timer();

            t.Elapsed += new ElapsedEventHandler(showBlackPage);
            if (mPractise && mGrpAt == 0)
            {
                t.Interval = 2000;
            }
            else
            {
                t.Interval = 1000;
            }
            t.AutoReset = false;
            t.Enabled   = true;
        }
Beispiel #4
0
        public OrganizerTrailSS(PageSymmSpan _page, bool isPractise,
                                List <TrailsGroupSS> content, ref List <AnswerSSST> answer)
        {
            mContent   = content;
            mPage      = _page;
            mPractise  = isPractise;
            mCurAnswer = new AnswerSSST();

            if (mPractise)
            {
                mfRoute = showSymmPage;
            }
            else
            {
                mfRoute = showTitlePage;
            }

            mAnswer = answer;

            mOrderPage = new SubPageOrderSS(ref mPage, this);

            mCurSpanGroupsCount = getCurSpanGroupsCount();
        }