Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
        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;
        }