public TransactionRollViewModel(AccountItem accItem, IUITransactionRollService service)
 {
     this.service = service;
     this.account = accItem.account;
     Core.Instance.GetTransactions(account).ForEach((tr) =>
     {
         Transactions.Add(new TransactionItem(tr));
     });
 }
 public void ShowTransactionRoll(AccountItem item)
 {
     if (item.Aggregated == false)
     {
         if (!CanShowReport)
         {
             windowService.ShowMessage("Set categories first!");
         }
         else
         {
             windowService.ShowTransactionRoll(item);
         }
     }
 }
Ejemplo n.º 3
0
 public bool DeleteAccount(AccountItem item)
 {
     return(Core.Instance.DeleteAccount(item.account));
 }