Inheritance: ViewModelBase
コード例 #1
0
 public RenameAccountDialogViewModel(ShellViewModel shell, Account account, string currentName)
     : base(shell)
 {
     _account = account;
     _rename = new DelegateCommand(RenameAction);
     CurrentAccountName = currentName;
 }
コード例 #2
0
 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);
        }
コード例 #4
0
 public DialogViewModelBase(ShellViewModel shell) : base(shell)
 {
     HideDialogCommand = new DelegateCommand(HideDialog);
 }
コード例 #5
0
 public RecentActivityViewModel(ShellViewModel shell) : base(shell) { }
コード例 #6
0
 public WizardViewModel(ShellViewModel shell) : base(shell) { }
コード例 #7
0
 public ImportDialogViewModel(ShellViewModel shell, Account account) : base(shell)
 {
     _account = account;
     _import = new DelegateCommand(ImportAction);
 }
コード例 #8
0
 public CreateAccountDialogViewModel(ShellViewModel shell) : base(shell)
 {
     Execute = new DelegateCommand(ExecuteAction);
 }
コード例 #9
0
ファイル: StartupWizard.cs プロジェクト: tuxcanfly/Paymetheus
 public StartupWizard(ShellViewModel shell) : base(shell)
 {
     CurrentDialog = new BtcdRpcConnectionDialog(this);
     Shell = shell;
 }
コード例 #10
0
 public WizardDialogViewModelBase(ShellViewModel shell, WizardViewModel wizard)
     : base(shell)
 {
     _shell = shell;
     _wizard = wizard;
 }
コード例 #11
0
 public RecentActivityViewModel(ShellViewModel shell) : base(shell)
 {
 }