Example #1
0
        public void CycleForward()
        {
            var max = Enum.GetNames(typeof(DebugLevelType)).Length;

            var val = (int)Value + 1;
            if (val >= max) { val = 0; }
            Value = (DebugLevelType)val;
        }
Example #2
0
        public void CycleBackward()
        {
            var max = Enum.GetNames(typeof(DebugLevelType)).Length;

            var val = (int)Value - 1;
            if (val < 0) { val = max - 1; }
            Value = (DebugLevelType)val;
        }
Example #3
0
 /// <summary>
 /// Static Constructuro
 /// </summary>
 static MyDebug()
 {
     DebugLevel = DebugLevelType.None;
 }
Example #4
0
 public void SetVerbose()
 {
     Value = DebugLevelType.Verbose;
 }
Example #5
0
 public void SetNormal()
 {
     Value = DebugLevelType.Normal;
 }
Example #6
0
 public void SetNone()
 {
     Value = DebugLevelType.None;
 }