示例#1
0
 /// <summary>
 /// Raises the <see cref="TaskSelected"/> event.
 /// </summary>
 /// <param name="e">The <see cref="Microsoft.Win32.TaskScheduler.TaskListView.TaskSelectedEventArgs"/> instance containing the event data.</param>
 protected virtual void OnTaskSelected(TaskSelectedEventArgs e)
 {
     TaskSelected?.Invoke(this, e);
 }
 private void Border_MouseDown(object sender, MouseButtonEventArgs e)
 {
     TaskSelected?.Invoke(sender, ((TaskListDisplayItem)((Border)sender).DataContext).Id);
 }
 public void SelectTask(TaskVm selectedTask)
 {
     SelectedTask = selectedTask;
     TaskSelected?.Invoke(this, null);
 }
 public void InvokeAllTasks()
 {
     TaskSelected?.Invoke(this, null);
 }