public ShellViewModel() { // Set the window title to the title in the resources assembly. // Append network name to window title if not running on mainnet. var activeNetwork = App.Current.ActiveNetwork; var productTitle = AssemblyResources.Title; if (activeNetwork == BlockChainIdentity.MainNet) { WindowTitle = productTitle; } else { WindowTitle = $"{productTitle} [{activeNetwork.Name}]"; } CreateAccountCommand = new DelegateCommand(CreateAccount); NavigateBack = new DelegateCommand(ShowRecentActivity); _recentActivityViewModel = new RecentActivityViewModel(this); VisibleContent = _recentActivityViewModel; StartupWizard = new StartupWizard(this); StartupWizard.WalletOpened += StartupWizard_WalletOpened; StartupWizardVisible = true; }
public ShellViewModel() { // Set the window title to the title in the resources assembly. // Append network name to window title if not running on mainnet. var activeNetwork = App.Current.ActiveNetwork; var productTitle = AssemblyResources.Title; if (activeNetwork == BlockChainIdentity.MainNet) { WindowTitle = productTitle; } else { WindowTitle = $"{productTitle} [{activeNetwork.Name}]"; } CreateAccountCommand = new DelegateCommand(CreateAccount); NavigateBack = new DelegateCommand(ShowRecentActivity); _recentActivityViewModel = new RecentActivityViewModel(this); VisibleContent = _recentActivityViewModel; StartupWizard = new StartupWizard(this); StartupWizard.WalletOpened += StartupWizard_WalletOpened; StartupWizardVisible = true; }
public ShellViewModel() { CreateAccountCommand = new DelegateCommand(CreateAccount); NavigateBack = new DelegateCommand(ShowRecentActivity); _recentActivityViewModel = new RecentActivityViewModel(this); VisibleContent = _recentActivityViewModel; StartupWizard = new StartupWizard(this); StartupWizard.WalletOpened += StartupWizard_WalletOpened; StartupWizardVisible = true; }