public void InitialiseTicketList(Ticket ticket) { _validTicketList = new List <Ticket>(); _validTicketList.Add(ticket); Persister.WriteToBinaryFile(@_location + "_tickets.txt", _validTicketList, false); }
private void LoadStations() { List <Station> stationsTemp = Persister.ReadFromBinaryFile <List <Station> >(@"Stations.txt"); _stations = new StationList(stationsTemp); }