public void SaveClients() { try { SaveLoadData.SaveData(_clients, "clients.dat"); } catch (Exception e) { throw e; } }
public void SaveTransactions() { try { SaveLoadData.SaveData(_transactions, "transactions.dat"); } catch (Exception e) { throw e; } }
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>(); } }