public object PublishClone(AutomaticSubtotalContext context) { IndicatorState indicatorState = (IndicatorState)base.MemberwiseClone(); indicatorState.m_gaugePanel = (GaugePanel)context.CurrentDataRegionClone; if (this.m_startValue != null) { indicatorState.m_startValue = (GaugeInputValue)this.m_startValue.PublishClone(context); } if (this.m_endValue != null) { indicatorState.m_endValue = (GaugeInputValue)this.m_endValue.PublishClone(context); } if (this.m_color != null) { indicatorState.m_color = (ExpressionInfo)this.m_color.PublishClone(context); } if (this.m_scaleFactor != null) { indicatorState.m_scaleFactor = (ExpressionInfo)this.m_scaleFactor.PublishClone(context); } if (this.m_indicatorStyle != null) { indicatorState.m_indicatorStyle = (ExpressionInfo)this.m_indicatorStyle.PublishClone(context); } if (this.m_indicatorImage != null) { indicatorState.m_indicatorImage = (IndicatorImage)this.m_indicatorImage.PublishClone(context); } return(indicatorState); }
public void SetExprHost(StateIndicatorExprHost exprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)"); base.SetExprHost(exprHost, reportObjectModel); if (this.m_gaugeInputValue != null && this.ExprHost.GaugeInputValueHost != null) { this.m_gaugeInputValue.SetExprHost(this.ExprHost.GaugeInputValueHost, reportObjectModel); } if (this.m_maximumValue != null && this.ExprHost.MaximumValueHost != null) { this.m_maximumValue.SetExprHost(this.ExprHost.MaximumValueHost, reportObjectModel); } if (this.m_minimumValue != null && this.ExprHost.MinimumValueHost != null) { this.m_minimumValue.SetExprHost(this.ExprHost.MinimumValueHost, reportObjectModel); } if (this.m_indicatorImage != null && this.ExprHost.IndicatorImageHost != null) { this.m_indicatorImage.SetExprHost(this.ExprHost.IndicatorImageHost, reportObjectModel); } IList <IndicatorStateExprHost> indicatorStatesHostsRemotable = this.ExprHost.IndicatorStatesHostsRemotable; if (this.m_indicatorStates != null && indicatorStatesHostsRemotable != null) { for (int i = 0; i < this.m_indicatorStates.Count; i++) { IndicatorState indicatorState = this.m_indicatorStates[i]; if (indicatorState != null && indicatorState.ExpressionHostID > -1) { indicatorState.SetExprHost(indicatorStatesHostsRemotable[indicatorState.ExpressionHostID], reportObjectModel); } } } }
public IndicatorState(AspNetCore.ReportingServices.ReportIntermediateFormat.IndicatorState defObject, GaugePanel gaugePanel) { this.m_defObject = defObject; this.m_gaugePanel = gaugePanel; }
public IndicatorState this[string name] { get { for (int i = 0; i < this.Count; i++) { AspNetCore.ReportingServices.ReportIntermediateFormat.IndicatorState indicatorState = this.m_stateIndicator.StateIndicatorDef.IndicatorStates[i]; if (string.CompareOrdinal(name, indicatorState.Name) == 0) { return(base[i]); } } throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name); } }