public ListViewItemViewModel(TaskViewModel parent, Task task) { this.task = task; this.parent = parent; this.deleteCommand = new DeleteCommand(parent, this); this.completeCommand = new CompleteCommand(parent, this); }
private void Window_Loaded(object sender, RoutedEventArgs e) { taskViewModel = new TaskViewModel(); lvBillable.DataContext = taskViewModel.billableTasks; lvNonBillable.DataContext = taskViewModel.nonBillableTasks; lvActualBillableToday.DataContext = taskViewModel.actualBillableTasksToday; pbUtilization.DataContext = taskViewModel; lblUtilization.DataContext = taskViewModel; taskViewModel.loadTasks(); }
protected internal CompleteCommand(TaskViewModel parent, ListViewItemViewModel item) { this.parent = parent; this.item = item; }