Exemple #1
0
 private void prefillExtraItemzResult()
 {
     for (int i = 0; i < 2; i++)
     {
         mResults[i]    = new StVCResult();
         mResults[i].RT = -1;
         mResults[i].SelectedItemIndex = -1;
     }
 }
Exemple #2
0
        void nextBtnDownCore()
        {
            int selectedIndex = SelectedIdx();

            //save result
            mTimer.Stop();
            StVCResult result = new StVCResult();

            result.SelectedItemIndex = selectedIndex;
            result.RT = mTimer.GetElapsedTime();
            mResults[mCurTillIndex - 1] = result;
            mTimer.Reset();
            //mtWarn.Enabled = false;

            //return process
            bool continuousErrQuit = continuousZeroQuit(selectedIndex);
            int  thisScore         = 0;

            if (selectedIndex != -1)
            {
                thisScore = mItems[mCurTillIndex - 1].Weights[result.SelectedItemIndex];
            }

            if (mCurTillIndex - 1 < 5 && mbReturned == false)//go return
            {
                if (thisScore != 2)
                {
                    mReturnedAt   = mCurTillIndex;
                    mCurTillIndex = 0;
                    mbReturned    = true;
                }
            }

            if (mCurTillIndex - 1 == 1)//return process finished
            {
                mCurTillIndex = mReturnedAt;
            }

            if (mCurTillIndex - 1 == 5 && !mbReturned)//count the skipped items as correct
            {
                for (int i = 0; i < mHideCount; i++)
                {
                    mSocres8.Add(2);
                }
            }


            //8 items more than 6 socres
            if (!continuousErrQuit)
            {
                if (mCurTillIndex < SHEET_LENGTH)
                {
                    //UI Work
                    deselectAll();
                    nextPage();
                }
                else
                {
                    testEnd();
                }
            }
        }