Example #1
0
        public override object PublishClone(AutomaticSubtotalContext context)
        {
            RadialScale radialScale = (RadialScale)base.PublishClone(context);

            if (this.m_gaugePointers != null)
            {
                radialScale.m_gaugePointers = new List <RadialPointer>(this.m_gaugePointers.Count);
                foreach (RadialPointer gaugePointer in this.m_gaugePointers)
                {
                    radialScale.m_gaugePointers.Add((RadialPointer)gaugePointer.PublishClone(context));
                }
            }
            if (this.m_radius != null)
            {
                radialScale.m_radius = (ExpressionInfo)this.m_radius.PublishClone(context);
            }
            if (this.m_startAngle != null)
            {
                radialScale.m_startAngle = (ExpressionInfo)this.m_startAngle.PublishClone(context);
            }
            if (this.m_sweepAngle != null)
            {
                radialScale.m_sweepAngle = (ExpressionInfo)this.m_sweepAngle.PublishClone(context);
            }
            return(radialScale);
        }
        public void SetExprHost(RadialGaugeExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
            base.SetExprHost(exprHost, reportObjectModel);
            base.m_exprHost = exprHost;
            IList <RadialScaleExprHost> radialScalesHostsRemotable = ((RadialGaugeExprHost)base.m_exprHost).RadialScalesHostsRemotable;

            if (this.m_gaugeScales != null && radialScalesHostsRemotable != null)
            {
                for (int i = 0; i < this.m_gaugeScales.Count; i++)
                {
                    RadialScale radialScale = this.m_gaugeScales[i];
                    if (radialScale != null && radialScale.ExpressionHostID > -1)
                    {
                        radialScale.SetExprHost(radialScalesHostsRemotable[radialScale.ExpressionHostID], reportObjectModel);
                    }
                }
            }
        }
Example #3
0
 public RadialScale this[string name]
 {
     get
     {
         for (int i = 0; i < this.Count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.RadialScale radialScale = this.m_radialGauge.RadialGaugeDef.GaugeScales[i];
             if (string.CompareOrdinal(name, radialScale.Name) == 0)
             {
                 return(base[i]);
             }
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name);
     }
 }
Example #4
0
 public RadialScale(AspNetCore.ReportingServices.ReportIntermediateFormat.RadialScale defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
     base.m_defObject  = defObject;
     base.m_gaugePanel = gaugePanel;
 }