protected override ClauseNode CreateDefaultClauseNode(IBoundProperty property, IBoundPropertyCollection currentFilterProperties) { ClauseNode result = base.CreateDefaultClauseNode(property, FilterProperties); result.Operation = ((CustomFilterControl)Control).GetDefaultOperationCore(result.Property, result.Operation); return(result); }
internal ClauseType GetDefaultOperationCore(IBoundProperty property, ClauseType operation) { GetDefaultOperationEventArgs args = new GetDefaultOperationEventArgs(property, operation); RaiseGetDefaultOperation(args); return(args.ClauseType); }
public GetDefaultOperationEventArgs(IBoundProperty property, ClauseType operation) { fOperandProperty = property; fClauseType = operation; }
private ITypeInfo FindListElementTypeInfo(IBoundProperty listProperty) { if((listProperty != null) && listProperty.IsList && (listProperty.Type != null) && !string.IsNullOrEmpty(listProperty.Name)) { IMemberInfo mi = ObjectTypeInfo.FindMember(listProperty.Name); if(mi != null && mi.IsList && (mi.ListElementTypeInfo != null)) { return mi.ListElementTypeInfo; } } return null; }