|
|
@ -65,6 +65,8 @@ public class ObjectExtensionPropertyInfo : IHasNameWithLocalizableDisplayName, I |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public int Order { get; set; } |
|
|
public int Order { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public ExtensionPropertyUI UI { get; set; } |
|
|
|
|
|
|
|
|
public ObjectExtensionPropertyInfo( |
|
|
public ObjectExtensionPropertyInfo( |
|
|
[NotNull] ObjectExtensionInfo objectExtension, |
|
|
[NotNull] ObjectExtensionInfo objectExtension, |
|
|
[NotNull] Type type, |
|
|
[NotNull] Type type, |
|
|
@ -81,10 +83,26 @@ public class ObjectExtensionPropertyInfo : IHasNameWithLocalizableDisplayName, I |
|
|
Attributes.AddRange(ExtensionPropertyHelper.GetDefaultAttributes(Type)); |
|
|
Attributes.AddRange(ExtensionPropertyHelper.GetDefaultAttributes(Type)); |
|
|
DefaultValue = TypeHelper.GetDefaultValue(Type); |
|
|
DefaultValue = TypeHelper.GetDefaultValue(Type); |
|
|
Lookup = new ExtensionPropertyLookupConfiguration(); |
|
|
Lookup = new ExtensionPropertyLookupConfiguration(); |
|
|
|
|
|
UI = new ExtensionPropertyUI(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public object GetDefaultValue() |
|
|
public object GetDefaultValue() |
|
|
{ |
|
|
{ |
|
|
return ExtensionPropertyHelper.GetDefaultValue(Type, DefaultValueFactory, DefaultValue); |
|
|
return ExtensionPropertyHelper.GetDefaultValue(Type, DefaultValueFactory, DefaultValue); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class ExtensionPropertyUI |
|
|
|
|
|
{ |
|
|
|
|
|
public ExtensionPropertyUIEditModal EditModal { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public ExtensionPropertyUI() |
|
|
|
|
|
{ |
|
|
|
|
|
EditModal = new ExtensionPropertyUIEditModal(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public class ExtensionPropertyUIEditModal |
|
|
|
|
|
{ |
|
|
|
|
|
public bool IsReadOnly { get; set; } |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|