private void PrepareCustomProperties() { if (base.m_isOldSnapshot) { if (this.m_customProperties == null && this.RenderReportItem.CustomProperties != null) { this.m_customProperties = new CustomPropertyCollection(base.m_renderingContext, this.RenderReportItem.CustomProperties); } } else { if (this.m_customProperties == null) { this.m_customProperties = new CustomPropertyCollection(this.ReportScope.ReportScopeInstance, base.m_renderingContext, this, base.m_reportItemDef, base.m_reportItemDef.ObjectType, base.m_reportItemDef.Name); } else if (!this.m_customPropertiesReady) { this.m_customProperties.UpdateCustomProperties(this.ReportScope.ReportScopeInstance, base.m_reportItemDef, base.m_renderingContext.OdpContext, base.m_reportItemDef.ObjectType, base.m_reportItemDef.Name); this.CriEvaluateInstance(); } this.m_customPropertiesReady = true; } }