Ejemplo n.º 1
0
 public void AddExpenditure(Budget newBudget)
 {
     // FUNCTION: Add new expenditure to the list
     // PRE-CONDITIONS:
     // POST-CONDITIONS:
     newBudget.budgetId = this.expenditureId++;
     expenditureList.Add(newBudget);
 }
Ejemplo n.º 2
0
 public int AddIncome(string name, decimal amount, int eventId)
 {
     // FUNCTION: Add a new expenditure
     // PRE-CONDITIONS:
     // POST-CONDITIONS:
     Budget budget = new Budget();
     budget.description = name;
     budget.amount = amount;
     server.GetEvent(eventId).AddIncome(budget);
     return budget.budgetId;
 }
Ejemplo n.º 3
0
 //BudgetLists add/delete/edit
 public void AddIncome(Budget newBudget)
 {
     // FUNCTION: Add new income to the list
     // PRE-CONDITIONS:
     // POST-CONDITIONS:
     newBudget.budgetId = this.incomeId++;
     incomeList.Add(newBudget);
 }