private static string translateTypeToLongName(DeprSwitchType newtype) { switch (newtype) { case DeprSwitchType.SwitchWhenOptimal: return("Switch"); case DeprSwitchType.DontSwitch: return("No Switch"); default: return((string)null); } }
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); }
public DeprSwitch(DeprSwitchType newvalue) { Type = (newvalue); }
public virtual void defaults() { Type = (DeprSwitchType.DontSwitch); }