private void SaveTransaction(TransactionMessage txnMessage) { _accountBalance.Update(txnMessage.Amount); _repository.Add(new Transaction { AccountNumber = txnMessage.Account, Amount = txnMessage.Amount, StartDate = txnMessage.StartDate }); }
private void UpdateViewModels() { if (IsActive) { OrderBook.Update(); Ticker.Update(); Orders.Update(); Balance.Update(); _timerUpdate.Start(); Ticker.LastUpdateSeconds = 0; } }
private void SettingsServiceOnSettingsLoaded(object sender, EventArgs e) { Balance.Update(); Orders.Update(); }