Esempio n. 1
0
 private void CollectionAdd()
 {
     if (debt.type_id == TypeViewModel.RetrieveTypeId("Income"))
     {
         IncomeDebts.Add(debt);
     }
     else
     {
         ExpenseDebts.Add(debt);
     }
 }
        private void CollectionAdd()
        {
            if (transaction.type_id == TypeViewModel.RetrieveTypeId("Income"))
            {
                IncomeTransactions.Add(transaction);
            }
            else
            {
                ExpenseTransactions.Add(transaction);
            }

            Transactions.Add(transaction);
        }
 public TransactionViewModel()
 {
     Transactions        = Transaction.RetrieveAll();
     IncomeTransactions  = Transaction.RetrieveByType(TypeViewModel.RetrieveTypeId("Income"));
     ExpenseTransactions = Transaction.RetrieveByType(TypeViewModel.RetrieveTypeId("Expense"));
 }
Esempio n. 4
0
 public DebtViewModel()
 {
     IncomeDebts  = Debt.RetrieveByType(TypeViewModel.RetrieveTypeId("Income"));
     ExpenseDebts = Debt.RetrieveByType(TypeViewModel.RetrieveTypeId("Expense"));
 }