public static int?ToV1(V2.SettingsControlType controlType)
        {
            switch (controlType)
            {
            case V2.SettingsControlType.CheckBox:
                return(3);

            case V2.SettingsControlType.Combo:
                return(2);

            case V2.SettingsControlType.Text:
                return(1);

            default:
                return(null);
            }
        }
Example #2
0
 public static int?ConvertSettingsControlType(V2.SettingsControlType controlType)
 {
     return(Mapper.Map <int?>(controlType));
 }