예제 #1
0
        public TaskEditor AddTask(ST_TaskData data)
        {
            TaskEditor editor = new TaskEditor(data, CreatTaskEditroView());

            listTaskEditor.Add(editor);
            return(editor);
        }
예제 #2
0
        public TaskEditor AddTask(Type type)
        {
            if (type == null)
            {
                return(null);
            }
            TaskEditor editor = new TaskEditor(GetTaskID(), type.ToString(), CreatTaskEditroView());

            listTaskEditor.Add(editor);
            return(editor);
        }
예제 #3
0
        public void RemoveTask(string taskID)
        {
            TaskEditor editor = GetTaskEditor(taskID);

            if (editor != null)
            {
                listTaskEditor.Remove(editor);
            }

            listTaskEditor?.ForEach((taskEditor) => taskEditor.RemoveTaskIDUsed(taskID));
            editor.Destroy();
        }