Inheritance: Paymetheus.Framework.WizardViewModelBase
Example #1
0
        public PromptPassphrasesDialog(StartupWizard wizard, byte[] seed, bool restore) : base(wizard)
        {
            _seed    = seed;
            _restore = restore;

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }
Example #2
0
        public CreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
        {
            _randomSeed = WalletSeed.GenerateRandomSeed();

            ContinueCommand            = new DelegateCommand(Continue);
            ContinueCommand.Executable = false;
        }
Example #3
0
        public ImportSeedDialog(StartupWizard wizard, PgpWordList pgpWordlist, ConnectionWizardDialog previousDialog) : base(wizard)
        {
            _previousDialog = previousDialog;
            _pgpWordList    = pgpWordlist;

            BackCommand     = new DelegateCommand(Back);
            ContinueCommand = new DelegateCommand(Continue);
        }
Example #4
0
        public CreateSeedDialog(StartupWizard wizard, PgpWordList pgpWordlist, ConnectionWizardDialog previousDialog) : base(wizard)
        {
            _previousDialog = previousDialog;
            _pgpWordList    = pgpWordlist;

            BackCommand     = new DelegateCommand(Back);
            ContinueCommand = new DelegateCommand(Continue);

            // false below and remove raise to require a selection.
            ContinueCommand.Executable = true;
        }
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 = "";
            }
        }
        public ConsensusServerRpcConnectionDialog(StartupWizard wizard, ConsensusServerRpcOptions csro = null) : base(wizard)
        {
            ConnectCommand = new DelegateCommand(Connect);

            // Apply any discovered RPC defaults.
            if (csro != null)
            {
                ConsensusServerNetworkAddress  = csro.NetworkAddress;
                ConsensusServerRpcUsername     = csro.RpcUser;
                ConsensusServerRpcPassword     = csro.RpcPassword;
                ConsensusServerCertificateFile = csro.CertificatePath;
            }
        }
Example #8
0
        public ConsensusServerRpcConnectionDialog(StartupWizard wizard, ConsensusServerRpcOptions csro = null) : base(wizard)
        {
            ConnectCommand = new DelegateCommand(Connect);

            // Apply any discovered RPC defaults.
            if (csro != null)
            {
                ConsensusServerNetworkAddress = csro.NetworkAddress;
                ConsensusServerRpcUsername = csro.RpcUser;
                ConsensusServerRpcPassword = csro.RpcPassword;
                ConsensusServerCertificateFile = csro.CertificatePath;
            }
        }
Example #9
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);

            StartupWizard = new StartupWizard(this, App.Current.DefaultCSRPO);
            StartupWizardVisible = true;
        }
Example #10
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);

            StartupWizard        = new StartupWizard(this, App.Current.DefaultCSRPO);
            StartupWizardVisible = true;
        }
Example #11
0
 public RestoreActivityProgress(StartupWizard wizard, string privatePassphrase) : base(wizard)
 {
     _privatePassphrase = privatePassphrase;
 }
Example #12
0
 public CreateNewWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Example #13
0
 public PromptPublicPassphraseDialog(StartupWizard wizard) : base(wizard)
 {
     OpenWalletCommand = new DelegateCommand(OpenWallet);
 }
Example #14
0
 public RestoreActivityProgress(StartupWizard wizard, string privatePassphrase) : base(wizard)
 {
     _privatePassphrase = privatePassphrase;
 }
Example #15
0
        public PromptPassphrasesDialog(StartupWizard wizard, byte[] seed, bool restore) : base(wizard)
        {
            _seed = seed;
            _restore = restore;

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }
Example #16
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard)
 {
     Wizard = wizard;
 }
Example #17
0
        public CreateSeedDialog(StartupWizard wizard, PgpWordList pgpWordlist, ConnectionWizardDialog previousDialog) : base(wizard)
        {
            _previousDialog = previousDialog;
            _pgpWordList = pgpWordlist;

            BackCommand = new DelegateCommand(Back);
            ContinueCommand = new DelegateCommand(Continue);

            // false below and remove raise to require a selection.
            ContinueCommand.Executable = true;
        }
Example #18
0
        public ConfirmSeedBackupDialog(StartupWizard wizard, CreateSeedDialog previousDialog,
            byte[] seed, PgpWordList pgpWordlist)
            : base(wizard)
        {
            _previousDialog = previousDialog;
            _seed = seed;
            _pgpWordList = pgpWordlist;

            ConfirmSeedCommand = new DelegateCommand(ConfirmSeed);
            BackCommand = new DelegateCommand(Back);
        }
Example #19
0
 public PickCreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
 {
     CreateWalletCommand = new DelegateCommand(CreateWallet);
     RestoreWalletCommand = new DelegateCommand(RestoreWallet);
 }
Example #20
0
        public ImportSeedDialog(StartupWizard wizard, PgpWordList pgpWordlist, ConnectionWizardDialog previousDialog) : base(wizard)
        {
            _previousDialog = previousDialog;
            _pgpWordList = pgpWordlist;

            BackCommand = new DelegateCommand(Back);
            ContinueCommand = new DelegateCommand(Continue);
        }
Example #21
0
 public CreateNewWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Example #22
0
 public OpenExistingWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Example #23
0
 public OpenExistingWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Example #24
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard.Shell, wizard)
 {
     Wizard = wizard;
 }
Example #25
0
 public PromptPublicPassphraseDialog(StartupWizard wizard) : base(wizard)
 {
     OpenWalletCommand = new DelegateCommand(OpenWallet);
 }
Example #26
0
        public CreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
        {
            _randomSeed = WalletSeed.GenerateRandomSeed();

            ContinueCommand = new DelegateCommand(Continue);
            ContinueCommand.Executable = false;
        }
Example #27
0
 public PickCreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
 {
     CreateWalletCommand  = new DelegateCommand(CreateWallet);
     RestoreWalletCommand = new DelegateCommand(RestoreWallet);
 }