public TransactionsViewModel(NavigationBarViewModel navigationBarViewModel, IPageService pageService, IRepository repository, IPeriod period)
        {
            NavigationBar            = navigationBarViewModel;
            this.filter              = (x) => { return(true); };
            this.pageService         = pageService;
            this.repository          = repository;
            RefreshCommand           = new Command(CmdRefresh);
            SelectTransactionCommand = new Command <TransactionDto>(async vm => await SelectTransaction(vm));
            NewTransactionCommand    = new Command(async vm => await NewTransaction());

            DeleteActionCommand = new Command <TransactionDto>(async vm => await DeleteAction(vm));
            EditActionCommand   = new Command <TransactionDto>(async vm => await EditAction(vm));
        }
示例#2
0
 public ChartsViewModel(NavigationBarViewModel navigationBarViewModel, IPageService pageService, IRepository repository)
 {
     this.NavigationBar = navigationBarViewModel;
     this.pageService   = pageService;
     this.repository    = repository;
 }