コード例 #1
0
ファイル: TaskViewModel.cs プロジェクト: itmorr/Pastry
 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
ファイル: MainView.xaml.cs プロジェクト: itmorr/Pastry
 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
ファイル: TaskViewModel.cs プロジェクト: itmorr/Pastry
 protected internal CompleteCommand(TaskViewModel parent, ListViewItemViewModel item)
 {
     this.parent = parent;
     this.item = item;
 }