public override object PublishClone(AutomaticSubtotalContext context)
        {
            StateIndicator stateIndicator = (StateIndicator)base.PublishClone(context);

            if (this.m_gaugeInputValue != null)
            {
                stateIndicator.m_gaugeInputValue = (GaugeInputValue)this.m_gaugeInputValue.PublishClone(context);
            }
            if (this.m_transformationType != null)
            {
                stateIndicator.m_transformationType = (ExpressionInfo)this.m_transformationType.PublishClone(context);
            }
            if (this.m_maximumValue != null)
            {
                stateIndicator.m_maximumValue = (GaugeInputValue)this.m_maximumValue.PublishClone(context);
            }
            if (this.m_minimumValue != null)
            {
                stateIndicator.m_minimumValue = (GaugeInputValue)this.m_minimumValue.PublishClone(context);
            }
            if (this.m_indicatorStyle != null)
            {
                stateIndicator.m_indicatorStyle = (ExpressionInfo)this.m_indicatorStyle.PublishClone(context);
            }
            if (this.m_indicatorImage != null)
            {
                stateIndicator.m_indicatorImage = (IndicatorImage)this.m_indicatorImage.PublishClone(context);
            }
            if (this.m_scaleFactor != null)
            {
                stateIndicator.m_scaleFactor = (ExpressionInfo)this.m_scaleFactor.PublishClone(context);
            }
            if (this.m_indicatorStates != null)
            {
                stateIndicator.m_indicatorStates = new List <IndicatorState>(this.m_indicatorStates.Count);
                foreach (IndicatorState indicatorState in this.m_indicatorStates)
                {
                    stateIndicator.m_indicatorStates.Add((IndicatorState)indicatorState.PublishClone(context));
                }
            }
            if (this.m_resizeMode != null)
            {
                stateIndicator.m_resizeMode = (ExpressionInfo)this.m_resizeMode.PublishClone(context);
            }
            if (this.m_angle != null)
            {
                stateIndicator.m_angle = (ExpressionInfo)this.m_angle.PublishClone(context);
            }
            return(stateIndicator);
        }
Example #2
0
 public StateIndicator(AspNetCore.ReportingServices.ReportIntermediateFormat.StateIndicator defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
 }
 public StateIndicator this[string name]
 {
     get
     {
         for (int i = 0; i < this.Count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.StateIndicator stateIndicator = this.m_gaugePanel.GaugePanelDef.StateIndicators[i];
             if (string.CompareOrdinal(name, stateIndicator.Name) == 0)
             {
                 return(base[i]);
             }
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name);
     }
 }
Example #4
0
 public override void DataRegionContentsSetExprHost(ObjectModelImpl reportObjectModel, bool traverseDataRegions)
 {
     if (this.m_exprHost != null)
     {
         IList <LinearGaugeExprHost> linearGaugesHostsRemotable = this.m_exprHost.LinearGaugesHostsRemotable;
         if (this.m_linearGauges != null && linearGaugesHostsRemotable != null)
         {
             for (int i = 0; i < this.m_linearGauges.Count; i++)
             {
                 LinearGauge linearGauge = this.m_linearGauges[i];
                 if (linearGauge != null && linearGauge.ExpressionHostID > -1)
                 {
                     linearGauge.SetExprHost(linearGaugesHostsRemotable[linearGauge.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <RadialGaugeExprHost> radialGaugesHostsRemotable = this.m_exprHost.RadialGaugesHostsRemotable;
         if (this.m_radialGauges != null && radialGaugesHostsRemotable != null)
         {
             for (int j = 0; j < this.m_radialGauges.Count; j++)
             {
                 RadialGauge radialGauge = this.m_radialGauges[j];
                 if (radialGauge != null && radialGauge.ExpressionHostID > -1)
                 {
                     radialGauge.SetExprHost(radialGaugesHostsRemotable[radialGauge.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <NumericIndicatorExprHost> numericIndicatorsHostsRemotable = this.m_exprHost.NumericIndicatorsHostsRemotable;
         if (this.m_numericIndicators != null && numericIndicatorsHostsRemotable != null)
         {
             for (int k = 0; k < this.m_numericIndicators.Count; k++)
             {
                 NumericIndicator numericIndicator = this.m_numericIndicators[k];
                 if (numericIndicator != null && numericIndicator.ExpressionHostID > -1)
                 {
                     numericIndicator.SetExprHost(numericIndicatorsHostsRemotable[numericIndicator.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <StateIndicatorExprHost> stateIndicatorsHostsRemotable = this.m_exprHost.StateIndicatorsHostsRemotable;
         if (this.m_stateIndicators != null && stateIndicatorsHostsRemotable != null)
         {
             for (int l = 0; l < this.m_stateIndicators.Count; l++)
             {
                 StateIndicator stateIndicator = this.m_stateIndicators[l];
                 if (stateIndicator != null && stateIndicator.ExpressionHostID > -1)
                 {
                     stateIndicator.SetExprHost(stateIndicatorsHostsRemotable[stateIndicator.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <GaugeImageExprHost> gaugeImagesHostsRemotable = this.m_exprHost.GaugeImagesHostsRemotable;
         if (this.m_gaugeImages != null && gaugeImagesHostsRemotable != null)
         {
             for (int m = 0; m < this.m_gaugeImages.Count; m++)
             {
                 GaugeImage gaugeImage = this.m_gaugeImages[m];
                 if (gaugeImage != null && gaugeImage.ExpressionHostID > -1)
                 {
                     gaugeImage.SetExprHost(gaugeImagesHostsRemotable[gaugeImage.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         IList <GaugeLabelExprHost> gaugeLabelsHostsRemotable = this.m_exprHost.GaugeLabelsHostsRemotable;
         if (this.m_gaugeLabels != null && gaugeLabelsHostsRemotable != null)
         {
             for (int n = 0; n < this.m_gaugeLabels.Count; n++)
             {
                 GaugeLabel gaugeLabel = this.m_gaugeLabels[n];
                 if (gaugeLabel != null && gaugeLabel.ExpressionHostID > -1)
                 {
                     gaugeLabel.SetExprHost(gaugeLabelsHostsRemotable[gaugeLabel.ExpressionHostID], reportObjectModel);
                 }
             }
         }
         if (this.m_backFrame != null && this.m_exprHost.BackFrameHost != null)
         {
             this.m_backFrame.SetExprHost(this.m_exprHost.BackFrameHost, reportObjectModel);
         }
         if (this.m_topImage != null && this.m_exprHost.TopImageHost != null)
         {
             this.m_topImage.SetExprHost(this.m_exprHost.TopImageHost, reportObjectModel);
         }
         IList <GaugeCellExprHost> cellHostsRemotable = this.m_exprHost.CellHostsRemotable;
         if (cellHostsRemotable != null && this.GaugeRow != null && cellHostsRemotable.Count > 0 && this.GaugeRow.GaugeCell != null)
         {
             this.GaugeRow.GaugeCell.SetExprHost(cellHostsRemotable[0], reportObjectModel);
         }
     }
 }