public int getNumberOfLines() { if (parser == null) { return(0); } return(parser.GetNumberOfLines()); }
public void loadCSV(string csv, string[] names) { this.csv_file = csv; Names = names; NotifyPropertyChanged("Names"); parser = new FlightDataParser(csv, names); media.numberOfLines = parser.GetNumberOfLines(); media.PropertyChanged += play; dc = new DataCalculations(parser); }