Exemplo n.º 1
0
        public OrganizerPractiseChar(PageOpSpan page) : base(page)
        {
            int[] scheme = { 2, 3 };

            mRealOrder   = new List <List <int> >();
            mAnswers     = new List <List <int> >();
            mCorrectness = new List <bool>();
            mSW          = new Stopwatch();
            mRTs         = new List <long>();

            if (!mPage.mbFixedItemMode)
            {
                for (int i = 0; i < scheme.Length; i++)
                {
                    mRealOrder.Add(getNonRepeatArray(scheme[i]));
                }
            }
            else//fixed mode
            {
                TabFetcher fetcher =
                    new TabFetcher(FEITStandard.GetExePath() + "OP\\opspanword.txt", "\\t");

                fetcher.Open();
                fetcher.GetLineBy();//skip header

                for (int i = 0; i < scheme.Length; i++)
                {
                    List <int> group = new List <int>();
                    for (int j = 0; j < scheme[i]; j++)
                    {
                        List <string> line = fetcher.GetLineBy();
                        group.Add(UIGroupNumChecksOS.GetIndexByChar(line[2]));
                    }
                    mRealOrder.Add(group);
                }

                fetcher.Close();
            }



            mfNext = showInstruction;
        }
Exemplo n.º 2
0
 public SubPageOrderOS(ref PageOpSpan _page, OrganizerTrailOS org)
 {
     mPage           = _page;
     mOrg            = org;
     mCheckComponent = new UIGroupNumChecksOS();
 }