private async void OnShowEvent(object sender, EventArgs e)
        {
            var response = await _presenter.TryGetAccountInfo(AppSettings.User.Login);

            if (response.IsSuccess)
            {
                _adapter.MainHolder.AccountInfo = response.Result;
            }
        }
Пример #2
0
        private async void GetBalance()
        {
            balanceLoader.StartAnimating();
            var response = await _presenter.TryGetAccountInfo(AppSettings.User.Login);

            if (response.IsSuccess)
            {
                balances = response.Result?.Balances;
                var balance = balances?.Find(x => x.CurrencyType == _pickedCoin);
                balanceLabel.Text = $"{AppSettings.LocalizationManager.GetText(LocalizationKeys.Balance)}: {balance.Value}";
            }
            balanceLoader.StopAnimating();
        }