本文整理汇总了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;未经允许,请勿转载。 |
请发表评论