Inheritance: Paymetheus.WizardViewModel
Example #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;
        }
Example #2
0
        public CreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
        {
            _randomSeed = WalletSeed.GenerateRandomSeed();

            ContinueCommand            = new DelegateCommand(Continue);
            ContinueCommand.Executable = false;
        }
Example #3
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;
        }
Example #4
0
        public BtcdRpcConnectionDialog(StartupWizard wizard) : base(wizard)
        {
            ConnectCommand = new DelegateCommand(Connect);

            // Do not autofill local defaults if they don't exist.
            if (!File.Exists(BtcdCertificateFile))
            {
                BtcdNetworkAddress = "";
                BtcdCertificateFile = "";
            }
        }
Example #5
0
        public ConfirmSeedBackupDialog(StartupWizard wizard, CreateOrImportSeedDialog previousDialog,
                                       byte[] seed, PgpWordList pgpWordlist)
            : base(wizard)
        {
            _previousDialog = previousDialog;
            _seed           = seed;
            _pgpWordList    = pgpWordlist;

            ConfirmSeedCommand = new DelegateCommand(ConfirmSeed);
            BackCommand        = new DelegateCommand(Back);
        }
Example #6
0
        public ConsensusServerRpcConnectionDialog(StartupWizard wizard) : base(wizard)
        {
            ConnectCommand = new DelegateCommand(Connect);

            // Do not autofill local defaults if they don't exist.
            if (!File.Exists(ConsensusServerCertificateFile))
            {
                ConsensusServerNetworkAddress  = "";
                ConsensusServerCertificateFile = "";
            }
        }
Example #7
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;
        }
Example #8
0
        public PromptPassphrasesDialog(StartupWizard wizard, byte[] seed) : base(wizard)
        {
            _seed = seed;

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }
Example #9
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard.Shell, wizard)
 {
     Wizard = wizard;
 }
Example #10
0
 public PromptPublicPassphraseDialog(StartupWizard wizard) : base(wizard)
 {
     OpenWalletCommand = new DelegateCommand(OpenWallet);
 }
Example #11
0
 public PromptPassphrasesDialog(StartupWizard wizard) : base(wizard)
 {
     CreateWalletCommand = new DelegateCommand(CreateWallet);
 }
Example #12
0
        public ConfirmSeedBackupDialog(StartupWizard wizard) : base(wizard)
        {
            if (wizard.WalletSeed == null)
            {
                throw new Exception("Verification dialog requires seed");
            }

            ConfirmSeedCommand = new DelegateCommand(ConfirmSeed);
            BackCommand = new DelegateCommand(Back);
        }
Example #13
0
        public DisplaySeedDialog(StartupWizard wizard) : base(wizard)
        {
            AdvanceToConfirmationCommand = new DelegateCommand(AdvanceToConfirmation);

            if (wizard.WalletSeed == null)
            {
                wizard.WalletSeed = Wallet.RandomSeed();
            }
        }
Example #14
0
        public ConfirmSeedBackupDialog(StartupWizard wizard, CreateOrImportSeedDialog previousDialog,
            byte[] seed, PgpWordList pgpWordlist)
            : base(wizard)
        {
            _previousDialog = previousDialog;
            _seed = seed;
            _pgpWordList = pgpWordlist;

            ConfirmSeedCommand = new DelegateCommand(ConfirmSeed);
            BackCommand = new DelegateCommand(Back);
        }
Example #15
0
        public CreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
        {
            _randomSeed = WalletSeed.GenerateRandomSeed();

            ContinueCommand = new DelegateCommand(Continue);
            ContinueCommand.Executable = false;
        }
Example #16
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard.Shell, wizard)
 {
     Wizard = wizard;
 }
Example #17
0
 public PromptPublicPassphraseDialog(StartupWizard wizard) : base(wizard)
 {
     OpenWalletCommand = new DelegateCommand(OpenWallet);
 }
Example #18
0
        public PromptPassphrasesDialog(StartupWizard wizard, byte[] seed) : base(wizard)
        {
            _seed = seed;

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }