Inheritance: ViewModelBase
 public RenameAccountDialogViewModel(ShellViewModel shell, Account account, string currentName)
     : base(shell)
 {
     _account = account;
     _rename = new DelegateCommand(RenameAction);
     CurrentAccountName = currentName;
 }
 public PassphraseDialogViewModel(ShellViewModel shell, string header, string buttonText, Func<string, Task> executeWithPassphrase)
     : base(shell)
 {
     Header = header;
     ExecuteText = buttonText;
     _execute = executeWithPassphrase;
     Execute = new DelegateCommand(ExecuteAction);
 }
示例#3
0
        public AccountViewModel(ShellViewModel shell, Wallet wallet, Account account)
            : base(shell)
        {
            _wallet = wallet;
            _account = account;
            _accountState = _wallet.LookupAccountState(_account);
            UpdateAccountStateProperties(1, _accountState); // TODO: Don't hardcode confs

            RenameAccount = new DelegateCommand(RenameAcountAction);
            ImportKey = new DelegateCommand(ImportKeyAction);

            PopulateTransactionHistory();

            FetchUnspentOutputs = new DelegateCommand(FetchUnspentOutputsAction);

            AddPendingOutput = new ButtonCommand("Add output", AddPendingOutputAction);
            RemovePendingOutput = new DelegateCommand<PendingOutput>(RemovePendingOutputAction);
            FinishCreateTransaction = new ButtonCommand("Send transaction", FinishCreateTransactionAction);
            AddPendingOutputAction();
            RecalculateCreateTransaction();

            RequestAddress = new ButtonCommand("Create single-use address", RequestAddressAction);
        }
 public DialogViewModelBase(ShellViewModel shell) : base(shell)
 {
     HideDialogCommand = new DelegateCommand(HideDialog);
 }
 public RecentActivityViewModel(ShellViewModel shell) : base(shell) { }
示例#6
0
 public WizardViewModel(ShellViewModel shell) : base(shell) { }
 public ImportDialogViewModel(ShellViewModel shell, Account account) : base(shell)
 {
     _account = account;
     _import = new DelegateCommand(ImportAction);
 }
 public CreateAccountDialogViewModel(ShellViewModel shell) : base(shell)
 {
     Execute = new DelegateCommand(ExecuteAction);
 }
示例#9
0
 public StartupWizard(ShellViewModel shell) : base(shell)
 {
     CurrentDialog = new BtcdRpcConnectionDialog(this);
     Shell = shell;
 }
 public WizardDialogViewModelBase(ShellViewModel shell, WizardViewModel wizard)
     : base(shell)
 {
     _shell = shell;
     _wizard = wizard;
 }
 public RecentActivityViewModel(ShellViewModel shell) : base(shell)
 {
 }