// 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(); }
private static void RefreshUsedSubItemColors() { UsedSubitemColors.Clear(); LoggerObjects.TrackSubitemColors(UsedSubitemColors); MethodObjects.TrackSubitemColors(UsedSubitemColors); SessionObjects.TrackSubitemColors(UsedSubitemColors); ThreadObjects.TrackSubitemColors(UsedSubitemColors); ThreadNames.TrackSubitemColors(UsedSubitemColors); UsedSubitemColors.Remove(null); }
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); }