Esempio n. 1
0
        private async Task ReceiveWallet(CMsgClientWalletInfoUpdate wallet)
        {
            var before = Wallet;
            var after  = Wallet.Create((CurrencyCode)wallet.currency, wallet.balance64, wallet.balance64_delayed);

            Wallet = after;
            await WalletUpdated.InvokeAsync(this, new WalletUpdatedEventArgs(before, after)).ConfigureAwait(false);
        }
Esempio n. 2
0
 public void WalletChanged(decimal currentValue)
 {
     WalletValueChanged?.Invoke(_wallet.GetBalance());
     WalletUpdated?.Invoke();
 }