Exemplo n.º 1
0
        public ExpenseViewModel(Expense e, AccountancyApplication app)
        {
            Account = app.GetAccount(e.accountId);
            Amount = e.amount;
            Date = e.date;
            Category = app.GetCategory(e.categoryId);
            Description = e.description;

            m_underlyingData = e;
        }
Exemplo n.º 2
0
 internal void AdjustParent(AccountancyApplication app)
 {
     m_parent = app.GetCategory(m_underlyingData.categoryId);
 }