Пример #1
0
 public void SaveClients()
 {
     try
     {
         SaveLoadData.SaveData(_clients, "clients.dat");
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #2
0
 public void SaveTransactions()
 {
     try
     {
         SaveLoadData.SaveData(_transactions, "transactions.dat");
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Пример #3
0
 private void LoadData()
 {
     try
     {
         _transactions = SaveLoadData.LoadData <Transaction>("transactions.dat");
         _clients      = SaveLoadData.LoadData <BaseClient>("clients.dat");
     }
     catch (Exception e)
     {
         _transactions = new List <Transaction>();
         _clients      = new List <BaseClient>();
     }
 }