public static void InitializeTransactions() { foreach (var i in SQLTransactions.GetInstance().GetList()) { Transactions.Add(i); TotalAmount += i.Amount; } }
public static void NewTransaction(int amount, ClientClass client) { TransactionClass currentTransaction = new TransactionClass(amount, client); Transactions.Add(currentTransaction); SQLTransactions.GetInstance().Create(currentTransaction); TotalAmount += amount; }