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

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }
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 ImportSeedDialog(StartupWizard wizard, PgpWordList pgpWordlist, ConnectionWizardDialog previousDialog) : base(wizard)
        {
            _previousDialog = previousDialog;
            _pgpWordList    = pgpWordlist;

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

            CreateWalletCommand = new DelegateCommand(CreateWallet);
        }
Exemplo n.º 16
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard)
 {
     Wizard = wizard;
 }
Exemplo 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;
        }
Exemplo 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);
        }
Exemplo n.º 19
0
 public PickCreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
 {
     CreateWalletCommand = new DelegateCommand(CreateWallet);
     RestoreWalletCommand = new DelegateCommand(RestoreWallet);
 }
Exemplo 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);
        }
Exemplo n.º 21
0
 public CreateNewWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Exemplo n.º 22
0
 public OpenExistingWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Exemplo n.º 23
0
 public OpenExistingWalletActivityProgress(StartupWizard wizard) : base(wizard)
 {
 }
Exemplo n.º 24
0
 public ConnectionWizardDialog(StartupWizard wizard) : base(wizard.Shell, wizard)
 {
     Wizard = wizard;
 }
Exemplo n.º 25
0
 public PromptPublicPassphraseDialog(StartupWizard wizard) : base(wizard)
 {
     OpenWalletCommand = new DelegateCommand(OpenWallet);
 }
Exemplo n.º 26
0
        public CreateOrImportSeedDialog(StartupWizard wizard) : base(wizard)
        {
            _randomSeed = WalletSeed.GenerateRandomSeed();

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