public CreatePaymentViewModel(RepositoryViewModel repositoryViewModel)
        {
            _repositoryViewModel = repositoryViewModel;
            CreateCommand        = new InlineCommand(o => OnCreate((Window)o));
            CancelCommand        = new InlineCommand(o => OnCancel((Window)o));

            Wallet = _repositoryViewModel.Wallets.FirstOrDefault();
            Date   = DateTime.Today;
            Amount = 0;
        }
Ejemplo n.º 2
0
        public CurrentBookViewModel(BookService bookService, RepositoryViewModel repository)
        {
            _bookService      = bookService;
            Repository        = repository;
            CreateBookCommand = new InlineCommand(OnCreateBook);
            OpenBookCommand   = new InlineCommand(OnOpenBook);

            CreateWalletCommand = new InlineCommand(o => {
                var window = new CreateWalletWindow();
                window.Show();
            });

            CreatePaymentCommand = new InlineCommand(o => {
                var window = new CreatePaymentWindow();
                window.Show();
            });
        }
Ejemplo n.º 3
0
 public CreateWalletViewModel(RepositoryViewModel repositoryViewModel)
 {
     _repositoryViewModel = repositoryViewModel;
     CreateCommand        = new InlineCommand(o => OnCreate((Window)o));
     CancelCommand        = new InlineCommand(o => OnCancel((Window)o));
 }
Ejemplo n.º 4
0
 public BotInline(Func <CallbackQueryInfo, string[], Verify, Task> callback, string command, string separator, Verify verified)
 {
     Command  = new InlineCommand(command, separator);
     Callback = callback;
     Verified = verified;
 }