本文整理汇总了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]);
}
示例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;
}
}
}
示例3: SerializableObjectPropertyEditor
public SerializableObjectPropertyEditor(Type objectType, IModelMemberViewItem modelMemberViewItem)
: base(objectType, modelMemberViewItem) {
SerializableObjectPropertyEditorBuilder.Create()
.WithApplication(() => _application)
.WithPropertyEditor(this).
Build(editor => editor.Control);
}
示例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;
}
示例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;
}
示例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";
}
示例7: ExtLookupPropertyEditor
public ExtLookupPropertyEditor(Type objectType, IModelMemberViewItem info)
: base(objectType, info)
{
}
示例8: DurationAsTextPropertyEditor
public DurationAsTextPropertyEditor(Type objectType, IModelMemberViewItem model)
: base(objectType, model) {
}
示例9: StringLookupPropertyEditor
public StringLookupPropertyEditor(Type objectType, IModelMemberViewItem model)
: base(objectType, model)
{
}
示例10: ReleasedSequencePropertyEditor
public ReleasedSequencePropertyEditor(Type objectType, IModelMemberViewItem model)
: base(objectType, model) {
}
示例11: HyperLinkPropertyEditor
public HyperLinkPropertyEditor(Type objectType, IModelMemberViewItem info)
: base(objectType, info) {
}
示例12: XafBootstrapStringPropertyEditor
public XafBootstrapStringPropertyEditor(Type objectType, IModelMemberViewItem info)
: base(objectType, info)
{
}
示例13: RadialMenuPropertyEditor
public RadialMenuPropertyEditor(Type objectType, IModelMemberViewItem model)
: base(objectType, model)
{
}
示例14: EnumPropertyEditor
public EnumPropertyEditor(Type objectType, IModelMemberViewItem model)
: base(objectType, model) {
ImmediatePostData = model.ImmediatePostData;
}
示例15: ASPxSearchLookupPropertyEditor
public ASPxSearchLookupPropertyEditor(Type objectType, IModelMemberViewItem model)
: base(objectType, model) {
skipEditModeDataBind = true;
}