Пример #1
0
 /// <summary>
 /// Saves all the content of library the corresponding files
 /// </summary>
 public void saveContent()
 {
     JsonManager.save(Person.FILE, people);
     JsonManager.save(Transaction.FILE, transactions);
     JsonManager.save(Hotel.FILE, hotel);
 }
Пример #2
0
 /// <summary>
 /// Loads all the library content to the corresponding files
 /// </summary>
 private void loadContent()
 {
     people       = (List <Person>)JsonManager.load <List <Person> >(Person.FILE);
     transactions = (List <Transaction>)JsonManager.load <List <Transaction> >(Transaction.FILE);
     hotel        = (Hotel)JsonManager.load <Hotel>(Hotel.FILE);
 }