• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IModelMemberViewItem类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: LookupPropertyEditorEx

 public LookupPropertyEditorEx(Type objectType, IModelMemberViewItem item)
     : base(objectType, item)
 {
 }
开发者ID:Rukhlov,项目名称:DataStudio,代码行数:4,代码来源:LookupPropertyEditorEx.cs.cs


示例17: SearchLookUpEditPropertyEditor

 public SearchLookUpEditPropertyEditor(Type objectType, IModelMemberViewItem item)
     : base(objectType, item)
 {
 }
开发者ID:Rukhlov,项目名称:DataStudio,代码行数:4,代码来源:SearchLoockUP.cs


示例18: Setup

 public void Setup(XafApplication application, IObjectSpace objectSpace, IModelMemberViewItem model) {
     _application = application;
     _objectSpace = objectSpace;
     _model = model;
     _propertyMemberInfo = null;
     _dataSourceMemberInfo = null;
     ITypeInfo typeInfo = GetObjectTypeInfo(model);
     if (typeInfo == null) return;
     _propertyMemberInfo = typeInfo.FindMember(model.PropertyName);
     if (!String.IsNullOrEmpty(model.DataSourceProperty)) {
         var builder = new StringBuilder(model.DataSourceProperty);
         IList<IMemberInfo> path = _propertyMemberInfo.GetPath();
         for (int index = path.Count - 2; index >= 0; index--)
             builder.Insert(0, ".").Insert(0, path[index].Name);
         _dataSourceMemberInfo = typeInfo.FindMember(builder.ToString());
     }
     Init(_propertyMemberInfo.MemberType);
 }
开发者ID:derjabkin,项目名称:eXpand,代码行数:18,代码来源:EnumEdit.cs


示例19: RichEditWinPropertyEditor

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


示例20: GetObjectTypeInfo

 ITypeInfo GetObjectTypeInfo(IModelMemberViewItem model) {
     var objectView = model.ParentView as IModelObjectView;
     return objectView != null ? objectView.ModelClass.TypeInfo : null;
 }
开发者ID:derjabkin,项目名称:eXpand,代码行数:4,代码来源:EnumEdit.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IModelNode类代码示例发布时间:2022-05-24
下一篇:
C# IModelListView类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap