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); } } }
public bool DeleteAccount(AccountItem item) { return(Core.Instance.DeleteAccount(item.account)); }