Exemple #1
0
        private void loadSinglePos()
        {
            OrganizerPracLocation org = new OrganizerPracLocation(this, mPracLocation, mRecorder);

            org.next();
            mStatus = StatusSS.singleSymm;
        }
Exemple #2
0
        private void loadTest()
        {
            OrganizerTrailSS ots =
                new OrganizerTrailSS(this, false, mTest, ref mGroupsAnswer);

            mStatus = StatusSS.finish;

            ots.nextStep();
        }
Exemple #3
0
        private void loadInstruction2()
        {
            ClearAll();
            mLayoutInstruction.addTitle(240, 0, "以下是正式测验,按鼠标键继续", "KaiTi", 30, Color.FromRgb(255, 255, 255));

            mStatus = StatusSS.test;

            new FEITClickableScreen(ref mBaseCanvas, nextStep);
        }
Exemple #4
0
        private void loadSingleSymm()
        {
            OrganizerPracSymm org = new OrganizerPracSymm(this, mPractiseSymm, mRecorder);

            org.next();
            mStatus = StatusSS.practise;

            mRTBaseLine = org.mRTs;
        }
Exemple #5
0
        private void loadPractise()
        {
            mMeanRT = getMeanRT();


            OrganizerTrailSS ots =
                new OrganizerTrailSS(this, true, mPrac, ref mGroupsAnswer);

            mStatus = StatusSS.instruction2;
            ots.nextStep();
        }
Exemple #6
0
        public PageSymmSpan(MainWindow _mainWindow)
        {
            InitializeComponent();
            mMainWindow        = _mainWindow;
            mLayoutInstruction = new LayoutInstruction(ref mBaseCanvas);
            mTestGroupScheme   = new int[] { 2, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8 };
            mPracGroupScheme   = new int[] { 2, 2 };

            interFilename    = "inter_" + mMainWindow.mDemography.GenBriefString() + ".txt";
            posFilename      = "pos_" + mMainWindow.mDemography.GenBriefString() + ".txt";
            pracPosFilename  = "prac_pos_" + mMainWindow.mDemography.GenBriefString() + ".txt";
            pracSymmFilename = "prac_symm_" + mMainWindow.mDemography.GenBriefString() + ".txt";

            LoaderSymmSpan    loader = new LoaderSymmSpan("SYMM\\sourceIndex.txt", "SYMM\\fixedItems.txt", "SYMM\\locationExe.txt", "SYMM\\fixedSymmExeBaseline.txt");
            List <TrailSS_ST> rList  = loader.GetResourceList();

            if (!mbFixedItems)
            {
                RandomSelector testRanSel = new RandomSelector(rList, mTestGroupScheme);
                mTest = testRanSel.Get();

                RandomSelector pracRanSel = new RandomSelector(rList, mPracGroupScheme);
                mPrac = pracRanSel.Get();
            }
            else
            {
                mTest         = loader.GetFixedItemGroups(mTestGroupScheme);
                mPrac         = loader.GetFixedComprehExe(mPracGroupScheme);
                mPracLocation = loader.GetFixedLocationExe();
                mPractiseSymm = loader.GetFixedSymmExe();
            }

            mGroupsAnswer = new List <AnswerSSST>();

            mStatus = StatusSS.main_title;//test could be from here

            mTimer = new FEITTimer();
            mTimer.Start();

            mRecorder = new RecorderSymSpan(this);

            /*if (!mMainWindow.mDB.TableExists(Names.SYMSPAN_POS_TABLENAME))
             * {
             *  mMainWindow.mDB.CreateSymSpanPosTable(mTestGroup.Length);
             * }
             *
             * if (!mMainWindow.mDB.TableExists(Names.SYMSPAN_SYMM_TABLENAME))
             * {
             *  mMainWindow.mDB.CreateSymSpanSymmTable(trails.Count);
             * }*/
        }
Exemple #7
0
        private void loadMainTitle()
        {
            ClearAll();
            mLayoutInstruction.addTitle(70, 0, "对称广度", "SimHei", 52, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addTitle(133, 105, "Operation Span", "Batang", 32, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addTitle(240, 5,
                                        "请你判断图形的对称性,并记住随后出现的红点位置。",
                                        "SimHei", 30, Color.FromRgb(255, 255, 255));
            mLayoutInstruction.addTitle(290, 0,
                                        "下面先来练习一下记忆红点位置",
                                        "SimHei", 30, Color.FromRgb(255, 255, 255));

            mStatus = StatusSS.singlePos;
            //new FEITClickableScreen(ref mBaseCanvas, nextStep);
            CompBtnNextPage btn = new CompBtnNextPage("下一页");

            btn.Add2Page(mBaseCanvas, FEITStandard.PAGE_BEG_Y + 470);
            btn.mfOnAction = BlankMask1000Next;
        }