Beispiel #1
0
 public WalletSettingsViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
     : base(tonService, protoService, cacheService, settingsService, aggregator)
 {
     ExportCommand         = new RelayCommand(ExportExecute);
     ChangePasscodeCommand = new RelayCommand(ChangePasscodeExecute);
     DeleteCommand         = new RelayCommand(DeleteExecute);
 }
Beispiel #2
0
 public WalletReceiveViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
     : base(tonService, protoService, cacheService, settingsService, aggregator)
 {
     CopyCommand    = new RelayCommand(CopyExecute);
     InvoiceCommand = new RelayCommand(InvoiceExecute);
     ShareCommand   = new RelayCommand <string>(ShareExecute);
 }
Beispiel #3
0
        public WalletViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
            : base(tonService, protoService, cacheService, settingsService, aggregator)
        {
            _navigationTask = new TaskCompletionSource <bool>();

            Transactions = new IncrementalCollectionWithDelegate <object>(this);

            RefreshCommand  = new RelayCommand(RefreshExecute);
            SettingsCommand = new RelayCommand(SettingsExecute);
            ReceiveCommand  = new RelayCommand(ReceiveExecute);
            SendCommand     = new RelayCommand(SendExecute);
        }
Beispiel #4
0
        public WalletImportViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
            : base(tonService, protoService, cacheService, settingsService, aggregator)
        {
            Items = new MvxObservableCollection <WalletWordViewModel>();

            for (int i = 0; i < 12; i++)
            {
                Items.Add(new WalletWordViewModel {
                    Index = i + 1
                });
                Items.Add(new WalletWordViewModel {
                    Index = i + 13
                });
            }

            TooBadCommand = new RelayCommand(TooBadExecute);
            SendCommand   = new RelayCommand(SendExecute);
        }
Beispiel #5
0
 public WalletCreateViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
     : base(tonService, protoService, cacheService, settingsService, aggregator)
 {
     SendCommand   = new RelayCommand(SendExecute);
     ImportCommand = new RelayCommand(ImportExecute);
 }
Beispiel #6
0
 public TonViewModelBase(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
     : base(protoService, cacheService, settingsService, aggregator)
 {
     _tonService = tonService;
 }
 public WalletInfoViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
     : base(tonService, protoService, cacheService, settingsService, aggregator)
 {
     ContinueCommand = new RelayCommand(ContinueExecute);
 }
Beispiel #8
0
 public WalletSendingViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
     : base(tonService, protoService, cacheService, settingsService, aggregator)
 {
 }
 public WalletTransactionViewModel(ITonService tonService, IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator)
     : base(tonService, protoService, cacheService, settingsService, aggregator)
 {
     CopyCommand = new RelayCommand(CopyExecute);
     SendCommand = new RelayCommand(SendExecute);
 }