protected override void Process(OperandProperty theOperand) { base.Process(theOperand); theOperand.PropertyName = CaptionHelper.GetFullMemberCaption(XafTypesInfo.Instance.FindTypeInfo(objectType), theOperand.PropertyName); }
public override void ApplySettings() { try { Owner.BeginUpdate(); IAnalysisInfo analysisInfo = GetAnalysisInfo(); if (analysisInfo != null) { ITypeInfo objectTypeInfo = XafTypesInfo.Instance.FindTypeInfo(analysisInfo.DataType); foreach (string propertyName in analysisInfo.DimensionProperties) { IMemberInfo memberInfo = objectTypeInfo.FindMember(propertyName); _propertyModel = GetPropertyModel(memberInfo); if (memberInfo != null) { PivotGridFieldBase field = FindPivotGridField(GetBindingName(memberInfo)); if (field != null) { SetupPivotGridField(field, memberInfo.MemberType, GetMemberDisplayFormat(memberInfo)); field.Caption = CaptionHelper.GetFullMemberCaption(objectTypeInfo, propertyName); } } } } } finally { Owner.EndUpdate(); } }