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; }
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); }