Exemplo n.º 1
0
        public int ImportItems()
        {
            Internal.Clear();
            Internal = Items.GetCopy();
            Search.WORK(ref Internal);
            Filter.WORK(ref Internal);
            Sorter.WORK(ref Internal);
            Select.WORK(ref Internal);

            Show.Clear();

            foreach (ITEM Item in Internal)
            {
                Show.Add(new CacheForTable()
                {
                    Type       = Item.MainBody["DicTyp"],
                    JP         = Item.MainBody["JPWord"],
                    CH         = Item.MainBody["CHWord"],
                    ErrorRate  = Item.MainBody["ErrorRate"],
                    LearnCount = Item.MainBody["LearnCount"],
                    ErrorCount = Item.MainBody["ErrorCount"],
                    LearnxTime = Item.MainBody["LearnxTime"],
                });
            }

            return(Internal.Count);
        }