public static void SwitchDebugLevel(DebugLevel level) { foreach (DebugLevelOption dloption in DebugLevelOption.DebugLevelOptions) { if (level.Equals(dloption.DebugLevel)) { dloption.Enabled = !dloption.Enabled; break; } } }
public static void IncludeLevel(DebugLevel level) { foreach (DebugLevelOption dloption in DebugLevelOption.DebugLevelOptions) { if (level.Equals(dloption.DebugLevel)) { dloption.Enabled = true; break; } } }