public void UpdateSendTransactions() { foreach (var transaction in _sendTransactions) { transaction.Do(); _sendTransactions.Remove(transaction); ContextWindow.UpdateDatabaseFile(); } }
public void UpdateCreditTransactions() { foreach (var transaction in _creditTransactions) { transaction.Do(); CreditTransaction aux = (CreditTransaction)transaction; if (aux.CreditPayed) { _creditTransactions.Remove(transaction); } ContextWindow.UpdateDatabaseFile(); } }