Exemple #1
0
        public static List <List <StPair> > GetLearningItems()
        {
            List <List <StPair> > retval = new List <List <StPair> >();
            String BasePath = FEITStandard.GetExePath() + "PAIREDASSO\\";
            int    groupLen = PagePairedAsso.mGroupLen;

            TabFetcher fet = new TabFetcher(BasePath + "Learn.txt", "\\t");

            fet.Open();
            fet.GetLineBy();

            List <String> line = null;

            for (int j = 0; j < REPEATS; j++)
            {
                List <StPair> group = new List <StPair>();
                for (int i = 0; i < groupLen; i++)
                {
                    line = fet.GetLineBy();
                    StPair pair = new StPair();
                    pair.First  = line[1];
                    pair.Second = line[2];
                    group.Add(pair);
                }
                retval.Add(group);
            }

            fet.Close();

            return(retval);
        }
Exemple #2
0
 public StTest()
 {
     Pair   = new StPair();
     Chars9 = new String[9];
 }