public override void Execute(object parameter)
        {
            Task selectedTask = _mainWindow.GetSelectedTask();

            //see if we've already got a task details tab open for this task.
            TaskDetailsViewModel taskDetails = _mainWindow.FindTaskDetailsTabForTask(selectedTask);
            if (taskDetails == null)
            {
                taskDetails = new TaskDetailsViewModel(selectedTask, _mainWindow);
                _mainWindow.Tabs.Add(taskDetails);
            }

            _mainWindow.SetActiveTab(taskDetails);
        }
Exemplo n.º 2
0
 public override void Execute(object parameter)
 {
     TaskDetailsViewModel vm = new TaskDetailsViewModel(new Task(), _mainWindow);
     _mainWindow.Tabs.Add(vm);
     _mainWindow.SetActiveTab(vm);
 }