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

            _stations = new StationList(stationsTemp);
        }