当前位置: 首页>>代码示例>>C#>>正文


C# IModelMemberViewItem类代码示例

本文整理汇总了C#中IModelMemberViewItem的典型用法代码示例。如果您正苦于以下问题:C# IModelMemberViewItem类的具体用法?C# IModelMemberViewItem怎么用?C# IModelMemberViewItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IModelMemberViewItem类属于命名空间,在下文中一共展示了IModelMemberViewItem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SerializableObjectPropertyEditor

 public SerializableObjectPropertyEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model) {
     SerializableObjectPropertyEditorBuilder.Create()
         .WithPropertyEditor(this)
         .WithApplication(() => _application)
         .Build(propertyEditor => ((TableEx) propertyEditor.Control).Rows[0].Cells[1].Controls[0]);
 }
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:SerializableObjectPropertyEditor.cs

示例2: WebFilterableEnumPropertyEditor

        public WebFilterableEnumPropertyEditor(Type objectType, IModelMemberViewItem model)
            : base(objectType, model) {
            PropertyInfo propertyInfo = ObjectType.GetProperty(PropertyName);
            if (propertyInfo != null) {
                _propertyType = propertyInfo.PropertyType;
                foreach (object item in propertyInfo.GetCustomAttributes(false)) {
                    var propAttr = item as DataSourcePropertyAttribute;
                    if (propAttr != null && !string.IsNullOrEmpty(propAttr.DataSourceProperty)) {
                        PropertyInfo dataSourceProperty = ObjectType.GetProperty(propAttr.DataSourceProperty);
                        _isNullMode = propAttr.DataSourcePropertyIsNullMode;
                        _isNullCriteria = propAttr.DataSourcePropertyIsNullCriteria;
                        if (dataSourceProperty != null) {
                            if (typeof(IEnumerable).IsAssignableFrom(dataSourceProperty.PropertyType) &&
                                dataSourceProperty.PropertyType.IsGenericType &&
                                dataSourceProperty.PropertyType.GetGenericArguments()[0].IsAssignableFrom(
                                    propertyInfo.PropertyType))
                                _dataSourceProperty = dataSourceProperty;
                        }
                    }

                    var criteriaAttr = item as DataSourceCriteriaAttribute;
                    if (criteriaAttr != null)
                        _isNullCriteria = criteriaAttr.DataSourceCriteria;
                }
            }
        }
开发者ID:noxe,项目名称:eXpand,代码行数:26,代码来源:EnumPropertyEditor.cs

示例3: SerializableObjectPropertyEditor

 public SerializableObjectPropertyEditor(Type objectType, IModelMemberViewItem modelMemberViewItem)
     : base(objectType, modelMemberViewItem) {
     SerializableObjectPropertyEditorBuilder.Create()
         .WithApplication(() => _application)
         .WithPropertyEditor(this).
         Build(editor => editor.Control);
 }
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:SerializableObjectPropertyEditor.cs

示例4: GetToolTipCore

 string GetToolTipCore(IModelMemberViewItem model, object editValue) {
     string name = Enum.GetName(model.ModelMember.Type, editValue);
     if (!(string.IsNullOrEmpty(name))) {
         var tooltipAttribute = XafTypesInfo.Instance.FindTypeInfo(model.ModelMember.Type).FindMember(name).FindAttribute<TooltipAttribute>();
         return tooltipAttribute != null ? Environment.NewLine + tooltipAttribute.Value : null;
     }
     return null;
 }
开发者ID:testexpand,项目名称:eXpand,代码行数:8,代码来源:ToolTipsController.cs

示例5: GetToolTipCore

 string GetToolTipCore(IModelMemberViewItem model, object editValue) {
     string name = Enum.GetName(model.ModelMember.Type, editValue);
     if (!(string.IsNullOrEmpty(name))) {
         var memInfo = model.ModelMember.Type.GetMember(name);
         var tooltipAttribute = memInfo[0].GetCustomAttributes(typeof(TooltipAttribute), false).OfType<TooltipAttribute>().FirstOrDefault();
         return tooltipAttribute != null ? Environment.NewLine + tooltipAttribute.Value : null;
     }
     return null;
 }
开发者ID:aries544,项目名称:eXpand,代码行数:9,代码来源:ToolTipsController.cs

示例6: FolderBrowseEditor

 public FolderBrowseEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model) {
     var propertyType = model.ModelMember.Type;
     var validTypes = new List<Type>{
         typeof(string) 
     };
     if (!validTypes.Contains(propertyType))
         throw new Exception("Can't use FolderBrowseEditor with property type " + propertyType.FullName);
     ControlBindingProperty = "Value";
 }
开发者ID:aries544,项目名称:eXpand,代码行数:10,代码来源:FolderBrowseEditor.cs

示例7: ExtLookupPropertyEditor

 public ExtLookupPropertyEditor(Type objectType, IModelMemberViewItem info)
     : base(objectType, info)
 {
 }
开发者ID:LSTANCZYK,项目名称:devexpress_xaf_aurum,代码行数:4,代码来源:ExtLookupPropertyEditor.cs

示例8: DurationAsTextPropertyEditor

 public DurationAsTextPropertyEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model) {
 }
开发者ID:martys,项目名称:eXpand,代码行数:3,代码来源:DurationAsTextPropertyEditor.cs

示例9: StringLookupPropertyEditor

 public StringLookupPropertyEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model)
 {
 }
开发者ID:aries544,项目名称:eXpand,代码行数:4,代码来源:StringLookupPropertyEditor.cs

示例10: ReleasedSequencePropertyEditor

 public ReleasedSequencePropertyEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model) {
 }
开发者ID:kevin3274,项目名称:eXpand,代码行数:3,代码来源:ReleasedSequencePropertyEditor.cs

示例11: HyperLinkPropertyEditor

 public HyperLinkPropertyEditor(Type objectType, IModelMemberViewItem info)
     : base(objectType, info) {
 }
开发者ID:vimarx,项目名称:eXpand,代码行数:3,代码来源:HyperLinkPropertyEditor.cs

示例12: XafBootstrapStringPropertyEditor

 public XafBootstrapStringPropertyEditor(Type objectType, IModelMemberViewItem info)
     : base(objectType, info)
 {
 }
开发者ID:Terricks,项目名称:XAFBootstrap,代码行数:4,代码来源:XafBootstrapStringPropertyEditor.cs

示例13: RadialMenuPropertyEditor

 public RadialMenuPropertyEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model)
 {
 }
开发者ID:ZixiangBoy,项目名称:CIIP,代码行数:4,代码来源:RadialMenuPropertyEditor.cs

示例14: EnumPropertyEditor

 public EnumPropertyEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model) {
     ImmediatePostData = model.ImmediatePostData;
 }
开发者ID:aries544,项目名称:eXpand,代码行数:4,代码来源:EnumPropertyEditor.cs

示例15: ASPxSearchLookupPropertyEditor

 public ASPxSearchLookupPropertyEditor(Type objectType, IModelMemberViewItem model)
     : base(objectType, model) {
     skipEditModeDataBind = true;
 }
开发者ID:noxe,项目名称:eXpand,代码行数:4,代码来源:ASPxSearchLookupPropertyEditor.cs


注:本文中的IModelMemberViewItem类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。