예제 #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);
 }
예제 #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();
 }
예제 #3
0
 protected internal CompleteCommand(TaskViewModel parent, ListViewItemViewModel item)
 {
     this.parent = parent;
     this.item = item;
 }