Beispiel #1
0
 public static Guid DefaultEditor(ParameterType type, WillEdit willEdit)
 {
     if (willEdit.IsDecimal(type))
     {
         return(DefaultDecimalEditorFactory.StaticId);
     }
     else if (willEdit.IsDynamicEnum(type))
     {
         return(DefaultDynamicEnumEditorFactory.StaticId);
     }
     else if (willEdit.IsLocalDynamicEnum(type))
     {
         return(DefaultLocalDynamicEnumEditorFactory.StaticId);
     }
     else if (willEdit.IsEnum(type))
     {
         return(DefaultEnumEditorFactory.StaticId);
     }
     else if (willEdit.IsInteger(type))
     {
         return(DefaultIntegerEditorFactory.StaticId);
     }
     else if (type == BaseTypeBoolean.ParameterType)
     {
         return(DefaultBooleanEditorFactory.StaticId);
     }
     else if (type == BaseTypeString.ParameterType)
     {
         return(DefaultStringEditorFactory.StaticId);
     }
     else if (willEdit.IsLocalizedString(type))
     {
         return(DefaultLocalizedStringEditorFactory.StaticId);
     }
     else if (type == BaseTypeAudio.ParameterType)
     {
         return(DefaultAudioEditorFactory.StaticId);
     }
     else if (type.IsSet)
     {
         return(DefaultSetEditorFactory.StaticId);
     }
     else
     {
         return(Guid.Empty);
     }
 }
 public bool WillEdit(ParameterType type, WillEdit queries)
 {
     return(queries.IsDynamicEnum(type));
 }