Example #1
0
        public static List<PoItem> GetItems(string poPath)
        {
            _items = new List<PoItem>();

            String poContent = null;
            using (StreamReader sr = new StreamReader(poPath))
            {
                poContent = sr.ReadToEnd();
            }
            PoParser poParser = new PoParser(poContent);
            poParser.DidFindPairEvent += DidFindPair;
            poParser.DidFailWithErrorEvent += DidFailWithError;
            poParser.DidFinishEvent += DidFinish;
            poParser.Parse();

            return _items;
        }
Example #2
0
        public static List <PoItem> GetItems(string poPath)
        {
            _items = new List <PoItem>();

            String poContent = null;

            using (StreamReader sr = new StreamReader(poPath))
            {
                poContent = sr.ReadToEnd();
            }
            PoParser poParser = new PoParser(poContent);

            poParser.DidFindPairEvent      += DidFindPair;
            poParser.DidFailWithErrorEvent += DidFailWithError;
            poParser.DidFinishEvent        += DidFinish;
            poParser.Parse();

            return(_items);
        }