Exemple #1
0
        /// <summary>
        /// Displays an existing panel, or creates a new panel with <paramref name="groupData"/> and displays it.
        /// </summary>
        internal static void ShowResults(string groupData)
        {
            if (groupData == null)
            {
                mainUI.AddLogEntries();
                mainUI.DisplayOutput();
                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)
                {
                    pluginUI.AddLogEntries();
                    pluginUI.DisplayOutput();
                    return;
                }
            }

            var newUI = AddResultsPanel(groupData, groupId, args);

            newUI.AddLogEntries();
            newUI.DisplayOutput();
        }