Example #1
0
        private static string translateTypeToLongName(DeprSwitchType newtype)
        {
            switch (newtype)
            {
            case DeprSwitchType.SwitchWhenOptimal:
                return("Switch");

            case DeprSwitchType.DontSwitch:
                return("No Switch");

            default:
                return((string)null);
            }
        }
Example #2
0
        private static char translateTypeToShortName(DeprSwitchType newType)
        {
            switch (newType)
            {
            case DeprSwitchType.MidQuarterSwitch:
                return('M');

            case DeprSwitchType.SwitchWhenOptimal:
                return('S');

            case DeprSwitchType.DontSwitch:
                return('N');

            default:
                return('\0');
            }
        }
        public DeprSwitchType GetDefaultDeprSwitch(DeprMethodTypeEnum deprMethod)
        {
            DeprSwitchType type = DeprSwitchType.DontSwitch;

            switch (deprMethod)
            {
            case DeprMethodTypeEnum.DeclBalSwitch:
            case DeprMethodTypeEnum.DeclBalHalfYearSwitch:
            case DeprMethodTypeEnum.DeclBalModHalfYearSwitch:
                type = DeprSwitchType.SwitchWhenOptimal;
                break;

            default:
                type = DeprSwitchType.DontSwitch;
                break;
            }
            return(type);
        }
Example #4
0
 public DeprSwitch(DeprSwitchType newvalue)
 {
     Type = (newvalue);
 }
Example #5
0
 public virtual void defaults()
 {
     Type = (DeprSwitchType.DontSwitch);
 }