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

            Transactions.Add(currentTransaction);
            SQLTransactions.GetInstance().Create(currentTransaction);
            TotalAmount += amount;
        }