Beispiel #1
0
 public TaskView(TaskViewModel viewModel)
 {
     InitializeComponent();
     MainGrid.DataContext = viewModel;
     ViewModel = viewModel;
 }
Beispiel #2
0
 public void SetCurrent(TaskViewModel taskViewModel)
 {
     var taskView = _inProgress.FirstOrDefault(view => view.ViewModel.Equals(taskViewModel));
     if (taskView == null)
     {
         taskView = _toDo.FirstOrDefault(view => view.ViewModel.Equals(taskViewModel));
         if (taskView != null)
         {
             Update(taskView);
         }
     }
     else
     {
         Update(taskView);
     }
 }
 public TaskDetailsView(TaskViewModel viewModel)
 {
     InitializeComponent();
     ViewModel = viewModel;
     this.DataContext = ViewModel;
 }
Beispiel #4
0
 internal void SwitchToTaskDetails(TaskViewModel viewModel)
 {
     Window.ContentContainer.Content = new TaskDetailsView(viewModel);
 }