public TaskView(TaskViewModel viewModel) { InitializeComponent(); MainGrid.DataContext = viewModel; ViewModel = viewModel; }
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; }
internal void SwitchToTaskDetails(TaskViewModel viewModel) { Window.ContentContainer.Content = new TaskDetailsView(viewModel); }