Beispiel #1
0
        // Removes SubItem colors (also called column colors) from all objects.
        public static void ClearSubItemColors()
        {
            UsedSubitemColors.Clear();

            TraceLevelObjects.RemoveSubitemColors();
            LoggerObjects.RemoveSubitemColors();
            MethodObjects.RemoveSubitemColors();
            SessionObjects.RemoveSubitemColors();
            ThreadObjects.RemoveSubitemColors();
            ThreadNames.RemoveSubitemColors();
        }
Beispiel #2
0
        private static void RefreshUsedSubItemColors()
        {
            UsedSubitemColors.Clear();

            LoggerObjects.TrackSubitemColors(UsedSubitemColors);
            MethodObjects.TrackSubitemColors(UsedSubitemColors);
            SessionObjects.TrackSubitemColors(UsedSubitemColors);
            ThreadObjects.TrackSubitemColors(UsedSubitemColors);
            ThreadNames.TrackSubitemColors(UsedSubitemColors);

            UsedSubitemColors.Remove(null);
        }
Beispiel #3
0
        private ThreadName FindOrCreateThreadName(string name)
        {
            ThreadName threadName = null;

            if (!_foundThreadNames.TryGetValue(name, out threadName))
            {
                if (!_oldThreadNames.TryGetValue(name, out threadName))
                {
                    threadName      = new ThreadName();
                    threadName.Name = name;
                }

                _foundThreadNames.Add(name, threadName);
                ThreadNames.Add(threadName);
            }

            return(threadName);
        }