예제 #1
0
        public async Task <decimal> EthBalance(string address)
        {
            decimal balance = -1;

            if (walletConfiguration.IsConfigured())
            {
                EthWalletService wallet = new EthWalletService(walletConfiguration, tokenRegistryService, accountRegistryService);
                balance = Convert.ToDecimal(await wallet.GetEthBalance(address));
            }

            return(balance);
        }
예제 #2
0
 protected override async Task NavigateToFirstViewModel(object hint = null)
 {
     if (walletConfiguration.IsConfigured())
     {
         await NavigationService.Navigate <TViewModel>().ConfigureAwait(false);
     }
 }
예제 #3
0
 /// <summary>
 /// Start is called on startup of the app
 /// Hint contains information in case the app is started with extra parameters
 /// </summary>
 public void Start(object hint = null)
 {
     if (walletConfiguration.IsConfigured())
     {
         ShowViewModel <ShellViewModel>();
     }
     else
     {
         //ShowViewModel<WalletConfigurationViewModel>();
     }
 }
예제 #4
0
        protected override async Task NavigateToFirstViewModel(object hint = null)
        {
            if (walletConfiguration.IsConfigured())
            {
                await NavigationService.Navigate <TViewModel>().ConfigureAwait(false);

                //navigationService.Navigate<BalanceSummaryViewModel>();
            }
            else
            {
                // NavigationService.Navigate<WalletConfigurationViewModel>();
            }
        }