Beispiel #1
0
 public ListViewItemViewModel(TaskViewModel parent, Task task)
 {
     this.task = task;
     this.parent = parent;
     this.deleteCommand = new DeleteCommand(parent, this);
     this.completeCommand = new CompleteCommand(parent, this);
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 protected internal CompleteCommand(TaskViewModel parent, ListViewItemViewModel item)
 {
     this.parent = parent;
     this.item = item;
 }