public void UpdateCustomProperties(IReportScopeInstance romInstance, ICustomPropertiesHolder customPropertiesHolder, OnDemandProcessingContext context, ObjectType objectType, string objectName)
        {
            AspNetCore.ReportingServices.ReportIntermediateFormat.DataValueList customProperties = customPropertiesHolder.CustomProperties;
            int  count = this.m_list.Count;
            bool flag  = false;

            if (this.m_lookupTable == null)
            {
                flag = true;
            }
            for (int i = 0; i < count; i++)
            {
                string   name     = null;
                object   value    = null;
                TypeCode typeCode = TypeCode.Empty;
                if (customProperties != null && i < customProperties.Count)
                {
                    customProperties[i].EvaluateNameAndValue(this.m_reportElementOwner, romInstance, customPropertiesHolder.InstancePath, context, objectType, objectName, out name, out value, out typeCode);
                }
                this.m_list[i].Update(name, value, typeCode);
                if (flag)
                {
                    this.AddPropToLookupTable(name, this.m_list[i]);
                }
            }
        }
 public CustomPropertyCollection(IReportScopeInstance romInstance, RenderingContext renderingContext, ReportElement reportElementOwner, ICustomPropertiesHolder customPropertiesHolder, ObjectType objectType, string objectName)
 {
     this.m_reportElementOwner = reportElementOwner;
     AspNetCore.ReportingServices.ReportIntermediateFormat.DataValueList customProperties = customPropertiesHolder.CustomProperties;
     if (customProperties == null)
     {
         this.m_list = new List <CustomProperty>();
     }
     else
     {
         bool flag  = InstancePathItem.IsValidContext(customPropertiesHolder.InstancePath.InstancePath);
         int  count = customProperties.Count;
         this.m_list = new List <CustomProperty>(count);
         for (int i = 0; i < count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.DataValue dataValue = customProperties[i];
             string   name     = null;
             object   value    = null;
             TypeCode typeCode = TypeCode.Empty;
             if (flag)
             {
                 dataValue.EvaluateNameAndValue(this.m_reportElementOwner, romInstance, customPropertiesHolder.InstancePath, renderingContext.OdpContext, objectType, objectName, out name, out value, out typeCode);
             }
             CustomProperty customProperty = new CustomProperty(this.m_reportElementOwner, renderingContext, dataValue.Name, dataValue.Value, name, value, typeCode);
             this.m_list.Add(customProperty);
             if (flag)
             {
                 this.AddPropToLookupTable(name, customProperty);
             }
         }
     }
 }
Esempio n. 3
0
 protected CustomPropertiesHolder(ICustomPropertiesHolder data)
 {
     this.properties = data.CustomProperties;
     this.Id         = data.Id;
 }