public static ShiftStyleEnum MatchCarShiftStyle(MatchCarShiftOptions option, CarShiftStyles carStyle, bool useRedShift) { switch (carStyle) { case CarShiftStyles.LeftToRight: switch (option) { case MatchCarShiftOptions.Single: if (useRedShift) { return(ShiftStyleEnum.GreenProgressiveRedShift); } return(ShiftStyleEnum.GreenProgressive); case MatchCarShiftOptions.DualLeft: if (useRedShift) { return(ShiftStyleEnum.GreenProgressiveRedShiftFirstHalf); } return(ShiftStyleEnum.GreenProgressiveFirstHalf); case MatchCarShiftOptions.DualRight: if (useRedShift) { return(ShiftStyleEnum.GreenProgressiveRedShiftSecondHalf); } return(ShiftStyleEnum.GreenProgressiveSecondHalf); } break; case CarShiftStyles.LeftToRight3Segments: switch (option) ///// { case MatchCarShiftOptions.Single: if (useRedShift) { return(ShiftStyleEnum.GreenProgressiveRedShift); } return(ShiftStyleEnum.GreenProgressive); case MatchCarShiftOptions.DualLeft: if (useRedShift) { return(ShiftStyleEnum.GreenProgressiveRedShiftFirstHalf); } return(ShiftStyleEnum.GreenProgressiveFirstHalf); case MatchCarShiftOptions.DualRight: if (useRedShift) { return(ShiftStyleEnum.GreenProgressiveRedShiftSecondHalf); } return(ShiftStyleEnum.GreenProgressiveSecondHalf); } break; case CarShiftStyles.RightToLeft: ///////Not Implemented yet (Does this type Exist??) switch (option) { case MatchCarShiftOptions.Single: break; case MatchCarShiftOptions.DualLeft: break; case MatchCarShiftOptions.DualRight: break; } break; case CarShiftStyles.Converging: switch (option) { case MatchCarShiftOptions.Single: if (useRedShift) { return(ShiftStyleEnum.GreenConvergingRedShift); } return(ShiftStyleEnum.GreenConverging); case MatchCarShiftOptions.DualLeft: if (useRedShift) { return(ShiftStyleEnum.GreenConvergingRedShiftFirstHalf); } return(ShiftStyleEnum.GreenConvergingFirstHalf); case MatchCarShiftOptions.DualRight: if (useRedShift) { return(ShiftStyleEnum.GreenConvergingRedShiftSecondHalf); } return(ShiftStyleEnum.GreenConvergingSecondHalf); } break; case CarShiftStyles.SingleLight: switch (option) { case MatchCarShiftOptions.Single: if (useRedShift) { return(ShiftStyleEnum.BasicShiftLight); } return(ShiftStyleEnum.BasicShiftLight); case MatchCarShiftOptions.DualLeft: if (useRedShift) { return(ShiftStyleEnum.BasicShiftLight); } return(ShiftStyleEnum.BasicShiftLight); case MatchCarShiftOptions.DualRight: if (useRedShift) { return(ShiftStyleEnum.BasicShiftLight); } return(ShiftStyleEnum.BasicShiftLight); } break; case CarShiftStyles.NoLights: switch (option) { case MatchCarShiftOptions.Single: return(ShiftStyleEnum.None); case MatchCarShiftOptions.DualLeft: return(ShiftStyleEnum.None); case MatchCarShiftOptions.DualRight: return(ShiftStyleEnum.None); } break; case CarShiftStyles.None: return(ShiftStyleEnum.None); } return(ShiftStyleEnum.None); }
public static ShiftStyleEnum MatchCarShiftStyle(MatchCarShiftOptions option, CarShiftStyles carStyle, bool useRedShift) { switch (carStyle) { case CarShiftStyles.LeftToRight: switch (option) { case MatchCarShiftOptions.Single: if (useRedShift) { return ShiftStyleEnum.GreenProgressiveRedShift; } return ShiftStyleEnum.GreenProgressive; case MatchCarShiftOptions.DualLeft: if (useRedShift) { return ShiftStyleEnum.GreenProgressiveRedShiftFirstHalf; } return ShiftStyleEnum.GreenProgressiveFirstHalf; case MatchCarShiftOptions.DualRight: if (useRedShift) { return ShiftStyleEnum.GreenProgressiveRedShiftSecondHalf; } return ShiftStyleEnum.GreenProgressiveSecondHalf; } break; case CarShiftStyles.LeftToRight3Segments: switch (option)///// { case MatchCarShiftOptions.Single: if (useRedShift) { return ShiftStyleEnum.GreenProgressiveRedShift; } return ShiftStyleEnum.GreenProgressive; case MatchCarShiftOptions.DualLeft: if (useRedShift) { return ShiftStyleEnum.GreenProgressiveRedShiftFirstHalf; } return ShiftStyleEnum.GreenProgressiveFirstHalf; case MatchCarShiftOptions.DualRight: if (useRedShift) { return ShiftStyleEnum.GreenProgressiveRedShiftSecondHalf; } return ShiftStyleEnum.GreenProgressiveSecondHalf; } break; case CarShiftStyles.RightToLeft: ///////Not Implemented yet (Does this type Exist??) switch (option) { case MatchCarShiftOptions.Single: break; case MatchCarShiftOptions.DualLeft: break; case MatchCarShiftOptions.DualRight: break; } break; case CarShiftStyles.Converging: switch (option) { case MatchCarShiftOptions.Single: if (useRedShift) { return ShiftStyleEnum.GreenConvergingRedShift; } return ShiftStyleEnum.GreenConverging; case MatchCarShiftOptions.DualLeft: if (useRedShift) { return ShiftStyleEnum.GreenConvergingRedShiftFirstHalf; } return ShiftStyleEnum.GreenConvergingFirstHalf; case MatchCarShiftOptions.DualRight: if (useRedShift) { return ShiftStyleEnum.GreenConvergingRedShiftSecondHalf; } return ShiftStyleEnum.GreenConvergingSecondHalf; } break; case CarShiftStyles.SingleLight: switch (option) { case MatchCarShiftOptions.Single: if (useRedShift) { return ShiftStyleEnum.BasicShiftLight; } return ShiftStyleEnum.BasicShiftLight; case MatchCarShiftOptions.DualLeft: if (useRedShift) { return ShiftStyleEnum.BasicShiftLight; } return ShiftStyleEnum.BasicShiftLight; case MatchCarShiftOptions.DualRight: if (useRedShift) { return ShiftStyleEnum.BasicShiftLight; } return ShiftStyleEnum.BasicShiftLight; } break; case CarShiftStyles.NoLights: switch (option) { case MatchCarShiftOptions.Single: return ShiftStyleEnum.None; case MatchCarShiftOptions.DualLeft: return ShiftStyleEnum.None; case MatchCarShiftOptions.DualRight: return ShiftStyleEnum.None; } break; case CarShiftStyles.None: return ShiftStyleEnum.None; } return ShiftStyleEnum.None; }