public OrganizerTrailOS(List <TrailGroupOS> _groups, PageOpSpan _page, bool practise) { mGroups = _groups; mPage = _page; mPractiseMode = practise; mAnswerGrp = new List <AnswerOpSpan>(); mAnswer = new AnswerOpSpan(); mCurTrailsCount = mGroups[mGrpAt].mTrails.Count; mCurTypeMax = getCountOfType(mCurTrailsCount); mOSEM = new OpSpanEquationMaker(); mPage.mTimer.Start(); }
public void groupIterate() { mAnswer = new AnswerOpSpan(); //statistics mOrderCorrectCount = 0; //cursor if (mGrpAt == 1 && mSpanOrderErrCount < 2 && !mPractiseMode) { mGrpAt += 3; } else { mGrpAt++;//go extra mExtraTrailDone = true; } mTraAt = 0; if (mGrpAt < mGroups.Count) { int newTrailCount = mGroups[mGrpAt].mTrails.Count; //when span iterates if (mCurTrailsCount != newTrailCount) { mCurTrailsCount = newTrailCount; mCurTypeMax = getCountOfType(mCurTrailsCount); mCurTypeAt = 1; mSpanOrderErrCount = 0; } else { mCurTypeAt++; } } else if (mGrpAt == mGroups.Count) { //test quit after iteration route = quit; } }