private static PageAttr GetNativePMA(PageAttributes attr) { if ((uint)attr == 0xFFFFFFFF) { return((PageAttr)attr); } PageAttr attrMask = 0; if ((attr & PageAttributes.ReadWrite) != 0) { attrMask |= PageAttr.ReadWrite; } if ((attr & PageAttributes.User) != 0) { attrMask |= PageAttr.User; } if ((attr & PageAttributes.Present) != 0) { attrMask |= PageAttr.Present; } return(attrMask); }
private static PageAttributes GetAbstractPMA(PageAttr attr) { if ((uint)attr == 0xFFFFFFFF) { return((PageAttributes)attr); } PageAttributes ret = PageAttributes.None; if ((attr & PageAttr.ReadWrite) != 0) { ret |= PageAttributes.ReadWrite; } if ((attr & PageAttr.User) != 0) { ret |= PageAttributes.User; } if ((attr & PageAttr.Present) != 0) { ret |= PageAttributes.Present; } return(ret); }
private void loadPractiseEquation() { OrganizerPractiseEquation ope = new OrganizerPractiseEquation(this); mCurrentStatus = PageAttr.instructCompreh; ope.mfNext(); mRTs = ope.mRTs; mRecorder.mMathPracAnswers = ope.mAnswers; mRecorder.mMathPracEquations = ope.mEquations; mRecorder.mMathPracRTs = ope.mRTs; }
private void loadPractiseChar() { OrganizerPractiseChar opc = new OrganizerPractiseChar(this); mCurrentStatus = PageAttr.practiseEquation; opc.mfNext(); mRecorder.mPracOrderAnswers = opc.mAnswers; mRecorder.mPracOrderCorrectness = opc.mCorrectness; mRecorder.mPracOrderRealOrder = opc.mRealOrder; mRecorder.mPracOrderRTs = opc.mRTs; }
private void mBaseCanvas_Loaded(object sender, RoutedEventArgs e) { PageCommon.InitCommonPageElements(ref mBaseCanvas); ClearAll(); if (!mbFixedItemMode) { //prepare data structures mGroups = GenGroups((new LoaderOpSpan("OPSPAN.csv")).GetTrails(), mGroupArrangement); mGroupsPrac = GenGroups((new LoaderOpSpan("OPSPANPrac.csv")).GetTrails(), mGroupArrangementPrac); } else//fixed mode { readFixedFromFile(FEITStandard.GetExePath() + "OP\\opspan.txt", ref mGroupsPrac, mGroupArrangementPrac, 1); readFixedFromFile(FEITStandard.GetExePath() + "OP\\opspan.txt", ref mGroups, mGroupArrangement, 5); } //replace equations here: mCurrentStatus = PageAttr.title; //systest //mCurrentStatus = PageAttr.test; //build BD int individualUnitCount = 0; for (int i = 0; i < mGroupArrangement.Length; i++) { individualUnitCount += mGroupArrangement[i]; } /*if (!mMainWindow.mDB.TableExists(Names.OPSAPN_EXPRESSION_TABLENAME)) * { * mMainWindow.mDB.CreateOpSpanExpressionTable(individualUnitCount); * } * * if (!mMainWindow.mDB.TableExists(Names.OPSPAN_ORDER_TABLENAME)) * { * mMainWindow.mDB.CreateOPSpanOrderTable(mGroupArrangement.Length); * }*/ nextStep(); }
private static PageAttributes GetAbstractPMA (PageAttr attr) { if ((uint)attr == 0xFFFFFFFF) return (PageAttributes)attr; PageAttributes ret = PageAttributes.None; if ((attr & PageAttr.ReadWrite) != 0) ret |= PageAttributes.ReadWrite; if ((attr & PageAttr.User) != 0) ret |= PageAttributes.User; if ((attr & PageAttr.Present) != 0) ret |= PageAttributes.Present; return ret; }
private void loadInstructionComprehensivePrac() { ClearAll(); mMeanRT = getMeanRT(mRTs); mLayoutInstruction.addInstruction(150, 100, FEITStandard.PAGE_WIDTH, 400, "下面练习一下同时完成这两项任务\r\n 请在做心算题的同时\r\n 记住随后出现的属相", "KaiTi", 40, Color.FromRgb(255, 255, 255)); mCurrentStatus = PageAttr.practise; //new FEITClickableScreen(ref mBaseCanvas, blank1000WithNextStep); CompBtnNextPage btnGO = new CompBtnNextPage("开始练习"); btnGO.Add2Page(mBaseCanvas, FEITStandard.PAGE_BEG_Y + 590); btnGO.mfOnAction = blank1000WithNextStep; }
private void loadInstructionPage2() { ClearAll(); CompCentralText cct = new CompCentralText(); cct.PutTextToCentralScreen("下面是正式测验", "KaiTi", 38, ref mBaseCanvas, -50, Color.FromRgb(255, 255, 255)); CompCentralText cct2 = new CompCentralText(); cct2.PutTextToCentralScreen("请在做心算题的同时\r\n记住随后出现的属相", "KaiTi", 38, ref mBaseCanvas, 50, Color.FromRgb(255, 255, 255)); mCurrentStatus = PageAttr.test; //new FEITClickableScreen(ref mBaseCanvas, nextStep); CompBtnNextPage btnGO = new CompBtnNextPage("开始测验"); btnGO.Add2Page(mBaseCanvas, FEITStandard.PAGE_BEG_Y + 550); btnGO.mfOnAction = nextStep; }
private void loadTitlePage() { ClearAll(); mLayoutInstruction.addTitle(70, 0, "操作广度", "KaiTi", 52, Color.FromRgb(255, 255, 255)); mLayoutInstruction.addTitle(133, 105, "Operation Span", "Batang", 32, Color.FromRgb(255, 255, 255)); mLayoutInstruction.addInstruction(240, 0, 600, 200, "请在做心算题的同时,记住随后出现的属相(十二生肖)", "KaiTi", 42, Color.FromRgb(255, 255, 255)); mCurrentStatus = PageAttr.practiseChar; //test////////////////////////////////////////////////////for stage control //mCurrentStatus = PageAttr.instructCompreh; //test above////////////////////////////////////////////// //new FEITClickableScreen(ref mBaseCanvas, nextStep); CompBtnNextPage btn = new CompBtnNextPage("下一页"); btn.Add2Page(mBaseCanvas, FEITStandard.PAGE_BEG_Y + 470); btn.mfOnAction = nextStep; }