Beispiel #1
0
 public void SetValue(StandardTimeValues type, int value)
 {
     if (StandardTimeVerifyer.isAcceptableTimeType(type))
     {
         return;
     }
     TimeValues[(int)type] = value;
 }
Beispiel #2
0
 public int GetValue(StandardTimeValues type)
 {
     if (!StandardTimeVerifyer.isAcceptableTimeType(type))
     {
         return(0);
     }
     return(TimeValues[(int)type]);
 }
 public static int GetMaximumTime(StandardTimeValues type)
 {
     if (!isAcceptableTimeType(type))
     {
         return(0);
     }
     SetMaximumTimeValues();
     return((int)maximum_time_values[(int)type]);
 }
        public static bool isAcceptableTimeType(StandardTimeValues type)
        {
            int type_value = (int)type;

            if (type_value < 0 || type_value >= (int)StandardTimeValues.counter)
            {
                return(false);
            }
            return(true);
        }
Beispiel #5
0
 private static int GetMaxValue(StandardTimeValues type)
 {
     return(StandardTimeVerifyer.GetMaximumTime(type));
 }