/// <summary> /// Clears an existing panel, or creates a new panel with <paramref name="groupData"/>. /// </summary> internal static void ClearResults(string groupData) { if (groupData == null) { mainUI.ClearOutput(); return; } string groupId; string[] args; TraceManager.ParseGroupData(groupData, out groupId, out args); foreach (var pluginUI in pluginUIs) { if (pluginUI.GroupData == groupData || pluginUI.GroupId == groupId && !pluginUI.Locked) { UpdateResultsPanel(pluginUI, groupData, groupId, args); pluginUI.ClearOutput(); return; } } var newUI = AddResultsPanel(groupData, groupId, args); //newUI.ClearOutput(); }