Beispiel #1
0
        async Task ExecuteSendCommand()
        {
            if (string.IsNullOrWhiteSpace(RecipientAddress) || SendingAmount <= 0)
            {
                return;
            }
            var toAddress = RecipientAddress.Trim();

            if (toAddress.Length != DefaultAccountAddress.Length)
            {
                return;
            }

            //userDialogs.ShowLoading("Sending");
            var result = await accountsManager.TransferAsync(DefaultAccountAddress, toAddress, SendingAmount);

            await navService.DisplayAlert("Send Result", $"tx:{result}", "ok", "cancel");

            //userDialogs.HideLoading();
            await UpdateBalance();
        }