예제 #1
0
 internal virtual void SetNewContext()
 {
     if (m_instance != null)
     {
         m_instance.SetNewContext();
     }
     m_customPropertiesReady = false;
     if (m_actionInfo != null)
     {
         m_actionInfo.SetNewContext();
     }
     if (m_style != null)
     {
         m_style.SetNewContext();
     }
     if (m_marker != null)
     {
         m_marker.SetNewContext();
     }
     if (m_dataLabel != null)
     {
         m_dataLabel.SetNewContext();
     }
     if (m_dataPointValues != null)
     {
         m_dataPointValues.SetNewContext();
     }
 }
        internal override void SetNewContext()
        {
            if (m_instance != null)
            {
                m_instance.SetNewContext();
            }
            if (m_style != null)
            {
                m_style.SetNewContext();
            }
            if (m_actionInfo != null)
            {
                m_actionInfo.SetNewContext();
            }
            if (m_emptyPoints != null)
            {
                m_emptyPoints.SetNewContext();
            }
            if (m_smartLabel != null)
            {
                m_smartLabel.SetNewContext();
            }
            if (m_dataLabel != null)
            {
                m_dataLabel.SetNewContext();
            }
            if (m_marker != null)
            {
                m_marker.SetNewContext();
            }
            if (m_chartDataPoints != null)
            {
                ChartDataPoint[] chartDataPoints = m_chartDataPoints;
                for (int i = 0; i < chartDataPoints.Length; i++)
                {
                    chartDataPoints[i]?.SetNewContext();
                }
            }
            List <ChartDerivedSeries> childrenDerivedSeries = ChildrenDerivedSeries;

            if (childrenDerivedSeries != null)
            {
                foreach (ChartDerivedSeries item in childrenDerivedSeries)
                {
                    item?.SetNewContext();
                }
            }
            if (m_chartItemInLegend != null)
            {
                m_chartItemInLegend.SetNewContext();
            }
            m_customPropertiesReady = false;
        }