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); }
protected override async Task NavigateToFirstViewModel(object hint = null) { if (walletConfiguration.IsConfigured()) { await NavigationService.Navigate <TViewModel>().ConfigureAwait(false); } }
/// <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>(); } }
protected override async Task NavigateToFirstViewModel(object hint = null) { if (walletConfiguration.IsConfigured()) { await NavigationService.Navigate <TViewModel>().ConfigureAwait(false); //navigationService.Navigate<BalanceSummaryViewModel>(); } else { // NavigationService.Navigate<WalletConfigurationViewModel>(); } }