Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public OrganizerPractiseEquation(PageOpSpan page) : base(page)
        {
            mPage    = page;
            mOSEM    = new OpSpanEquationMaker();
            mRDM     = new Random();
            mfNext   = showInstruction;
            mRTs     = new List <long>();
            mWatch   = new Stopwatch();
            mAnswers = new List <bool>();

            if (mPage.mbFixedItemMode)
            {
                mEquations = new List <StEquation>();
                TabFetcher fetcher =
                    new TabFetcher(
                        FEITStandard.GetExePath() + "OP\\opspanbaseline.txt", "\\t");
                fetcher.Open();

                fetcher.GetLineBy();//skip header
                List <String> line;
                while ((line = fetcher.GetLineBy()).Count != 0)
                {
                    StEquation equ = new StEquation();
                    equ.Equation = line[1];
                    equ.Result   = Int32.Parse(line[2]);
                    if (Int32.Parse(line[3]) == 1)
                    {
                        equ.Answer = true;
                    }
                    else
                    {
                        equ.Answer = false;
                    }

                    mEquations.Add(equ);
                }

                fetcher.Close();
            }
        }