public void CycleForward() { var max = Enum.GetNames(typeof(DebugLevelType)).Length; var val = (int)Value + 1; if (val >= max) { val = 0; } Value = (DebugLevelType)val; }
public void CycleBackward() { var max = Enum.GetNames(typeof(DebugLevelType)).Length; var val = (int)Value - 1; if (val < 0) { val = max - 1; } Value = (DebugLevelType)val; }
/// <summary> /// Static Constructuro /// </summary> static MyDebug() { DebugLevel = DebugLevelType.None; }
public void SetVerbose() { Value = DebugLevelType.Verbose; }
public void SetNormal() { Value = DebugLevelType.Normal; }
public void SetNone() { Value = DebugLevelType.None; }