private void addSeatToListView(Seat s) { SeatListView.Items.Add(s); SeatListView.DataContext = SeatList; }
private void parseFile(String fileText) { //splits up all results string[] res = fileText.Split('\n'); for (int i = 0; i < res.Length - 1; i++) { String str = res[i]; //add to result Seat s = new Seat(str); String ResStr = s.getFormatted(); addSeatToListView(s); } }