public TaskEditor AddTask(ST_TaskData data) { TaskEditor editor = new TaskEditor(data, CreatTaskEditroView()); listTaskEditor.Add(editor); return(editor); }
public TaskEditor AddTask(Type type) { if (type == null) { return(null); } TaskEditor editor = new TaskEditor(GetTaskID(), type.ToString(), CreatTaskEditroView()); listTaskEditor.Add(editor); return(editor); }
public void RemoveTask(string taskID) { TaskEditor editor = GetTaskEditor(taskID); if (editor != null) { listTaskEditor.Remove(editor); } listTaskEditor?.ForEach((taskEditor) => taskEditor.RemoveTaskIDUsed(taskID)); editor.Destroy(); }