예제 #1
0
        public override object PublishClone(AutomaticSubtotalContext context)
        {
            LinearScale linearScale = (LinearScale)base.PublishClone(context);

            if (this.m_gaugePointers != null)
            {
                linearScale.m_gaugePointers = new List <LinearPointer>(this.m_gaugePointers.Count);
                foreach (LinearPointer gaugePointer in this.m_gaugePointers)
                {
                    linearScale.m_gaugePointers.Add((LinearPointer)gaugePointer.PublishClone(context));
                }
            }
            if (this.m_startMargin != null)
            {
                linearScale.m_startMargin = (ExpressionInfo)this.m_startMargin.PublishClone(context);
            }
            if (this.m_endMargin != null)
            {
                linearScale.m_endMargin = (ExpressionInfo)this.m_endMargin.PublishClone(context);
            }
            if (this.m_position != null)
            {
                linearScale.m_position = (ExpressionInfo)this.m_position.PublishClone(context);
            }
            return(linearScale);
        }
예제 #2
0
        public void SetExprHost(LinearGaugeExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
            base.SetExprHost(exprHost, reportObjectModel);
            base.m_exprHost = exprHost;
            IList <LinearScaleExprHost> linearScalesHostsRemotable = ((LinearGaugeExprHost)base.m_exprHost).LinearScalesHostsRemotable;

            if (this.m_gaugeScales != null && linearScalesHostsRemotable != null)
            {
                for (int i = 0; i < this.m_gaugeScales.Count; i++)
                {
                    LinearScale linearScale = this.m_gaugeScales[i];
                    if (linearScale != null && linearScale.ExpressionHostID > -1)
                    {
                        linearScale.SetExprHost(linearScalesHostsRemotable[linearScale.ExpressionHostID], reportObjectModel);
                    }
                }
            }
        }
예제 #3
0
 public LinearScale(AspNetCore.ReportingServices.ReportIntermediateFormat.LinearScale defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
     base.m_defObject  = defObject;
     base.m_gaugePanel = gaugePanel;
 }
 public LinearScale this[string name]
 {
     get
     {
         for (int i = 0; i < this.Count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.LinearScale linearScale = this.m_linearGauge.LinearGaugeDef.GaugeScales[i];
             if (string.CompareOrdinal(name, linearScale.Name) == 0)
             {
                 return(base[i]);
             }
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsNotInCollection, name);
     }
 }