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

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

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

            BackCommand     = new DelegateCommand(Back);
            ContinueCommand = new DelegateCommand(Continue);
        }
Esempio n. 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;
        }
Esempio 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);
        }
Esempio 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 = "";
            }
        }
Esempio n. 7
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;
            }
        }
Esempio n. 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;
            }
        }
Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 11
0
 public RestoreActivityProgress(StartupWizard wizard, string privatePassphrase) : base(wizard)
 {
     _privatePassphrase = privatePassphrase;
 }
Esempio n. 12
0
 public CreateNewWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Esempio n. 13
0
 public PromptPublicPassphraseDialog(StartupWizard wizard) : base(wizard)
 {
     OpenWalletCommand = new DelegateCommand(OpenWallet);
 }
Esempio n. 14
0
 public RestoreActivityProgress(StartupWizard wizard, string privatePassphrase) : base(wizard)
 {
     _privatePassphrase = privatePassphrase;
 }
Esempio n. 15
0
        public PromptPassphrasesDialog(StartupWizard wizard, byte[] seed, bool restore) : base(wizard)
        {
            _seed = seed;
            _restore = restore;

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }
Esempio n. 16
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard)
 {
     Wizard = wizard;
 }
Esempio n. 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;
        }
Esempio n. 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);
        }
Esempio n. 19
0
 public PickCreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
 {
     CreateWalletCommand = new DelegateCommand(CreateWallet);
     RestoreWalletCommand = new DelegateCommand(RestoreWallet);
 }
Esempio n. 20
0
        public ImportSeedDialog(StartupWizard wizard, PgpWordList pgpWordlist, ConnectionWizardDialog previousDialog) : base(wizard)
        {
            _previousDialog = previousDialog;
            _pgpWordList = pgpWordlist;

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

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