/// <summary> /// Create a child MapNode and adds task to it /// </summary> /// <param name="text"></param> /// <param name="startDate"></param> /// <param name="endDate"></param> public bool AddSubTask(string text, DateTime startDate, DateTime endDate) { if(PluginManager.ActiveNodes.Count == 1) { MapNode node = new MapNode(PluginManager.ActiveNodes.First, text); node.SetStartDate(startDate); node.SetEndDate(endDate); return true; } else { return false; } }