public void SetValue(StandardTimeValues type, int value) { if (StandardTimeVerifyer.isAcceptableTimeType(type)) { return; } TimeValues[(int)type] = value; }
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); }
private static int GetMaxValue(StandardTimeValues type) { return(StandardTimeVerifyer.GetMaximumTime(type)); }