Пример #1
0
        /// <summary>
        /// Shows the new task GUI and updates the providernode object when finished
        /// </summary>
        /// <param name="providerNode">
        /// A <see cref="ProviderData"/>
        /// </param>
        public void NewTask(ProviderData _providerNode)
        {
            /* NewTaskView is Deprecated
            NewTaskView newTab = new NewTaskView(providerNode);

            IdeApp.Workbench.OpenDocument(newTab, true);
            */
            TaskView taskView = new TaskView ();
            taskView.NewTaskRole (_providerNode);

            IdeApp.Workbench.OpenDocument (taskView, true);
        }
Пример #2
0
        public void EditTask(TaskData target)
        {
            // Right now, it's safe to assume that the parent will be the provider
                        /*EditTaskView newTab = new EditTaskView(target.parent as ProviderData, target);

            IdeApp.Workbench.OpenDocument(newTab, true);*/

            // only open if the edit window is not open already
            if(!target.EditWindowOpen)
            {
                TaskView taskView = new TaskView ();
                taskView.EditTaskRole (providerNode, target);

                IdeApp.Workbench.OpenDocument (taskView, true);
                target.EditWindowOpen = true;
            }
        }