public ListViewItemViewModel(TaskViewModel parent, Task task) { this.task = task; this.parent = parent; this.deleteCommand = new DeleteCommand(parent, this); this.completeCommand = new CompleteCommand(parent, this); }
public void addNonBillableTask(Task task) { nonBillableTasks.Add(new ListViewItemViewModel(this, task)); computeProgress(); }