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

            ContinueCommand            = new DelegateCommand(Continue);
            ContinueCommand.Executable = false;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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 = "";
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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 = "";
            }
        }
Exemplo n.º 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;
        }
Exemplo n.º 8
0
        public PromptPassphrasesDialog(StartupWizard wizard, byte[] seed) : base(wizard)
        {
            _seed = seed;

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }
Exemplo n.º 9
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard.Shell, wizard)
 {
     Wizard = wizard;
 }
Exemplo n.º 10
0
 public PromptPublicPassphraseDialog(StartupWizard wizard) : base(wizard)
 {
     OpenWalletCommand = new DelegateCommand(OpenWallet);
 }
Exemplo n.º 11
0
 public PromptPassphrasesDialog(StartupWizard wizard) : base(wizard)
 {
     CreateWalletCommand = new DelegateCommand(CreateWallet);
 }
Exemplo n.º 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);
        }
Exemplo n.º 13
0
        public DisplaySeedDialog(StartupWizard wizard) : base(wizard)
        {
            AdvanceToConfirmationCommand = new DelegateCommand(AdvanceToConfirmation);

            if (wizard.WalletSeed == null)
            {
                wizard.WalletSeed = Wallet.RandomSeed();
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 15
0
        public CreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
        {
            _randomSeed = WalletSeed.GenerateRandomSeed();

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

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }