Ejemplo n.º 1
0
 public void Exec(IResource resource, IActionParameterStore actionStore)
 {
     if (resource != null)
     {
         IResource task = NewTaskAction.CreateTask(resource.ToResourceList(), null);
         task.EndUpdate();
     }
 }
Ejemplo n.º 2
0
        public void Execute(IActionContext context)
        {
            IResource selected = context.SelectedResources[0];
            IResource task     = NewTaskAction.CreateTask(null, null);

            if (task != null)
            {
                Core.ResourceAP.RunUniqueJob(new ResourcePairDelegate(CloneProps), selected, task);
                Core.UIManager.OpenResourceEditWindow(new TaskEditPane(), task, false);
            }
        }
Ejemplo n.º 3
0
        private void  CreateNewTaskInList(IResource parent, string name)
        {
            IResource task = NewTaskAction.CreateTask(null, null);

            if (task != null)
            {
                task.EndUpdate();
                if (parent != null)
                {
                    task.SetProp(TasksPlugin._linkSuperTask, parent);
                }

                if (String.IsNullOrEmpty(name))
                {
                    Core.UserInterfaceAP.QueueJob(new ResourceDelegate(_tasksTree.EditResourceLabel), task);
                }
                else
                {
                    task.SetProp(Core.Props.Subject, name);
                }
            }
        }