// 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); }
// Gets or makes the MethodObject with the specified name. private MethodObject GetMethod(string methodName) { MethodObject method; if (!_foundMethods.TryGetValue(methodName, out method)) { if (!_oldMethods.TryGetValue(methodName, out method)) { method = new MethodObject(); method.Name = methodName; } _foundMethods.Add(methodName, method); MethodObjects.Add(method); } return(method); }