示例#1
0
        private void FixupSmartChart(SmartChartDto previousValue)
        {
            if (previousValue != null && previousValue.ChartComments.Contains(this))
            {
                previousValue.ChartComments.Remove(this);
            }

            if (SmartChart != null)
            {
                if (!SmartChart.ChartComments.Contains(this))
                {
                    SmartChart.ChartComments.Add(this);
                }
                if (IdSmartChart != SmartChart.idSmartChart)
                {
                    IdSmartChart = SmartChart.idSmartChart;
                }
            }
        }
示例#2
0
        private void FixupSmartChart(SmartChartDto previousValue)
        {
            if (previousValue != null && previousValue.ChartSeries.Contains(this))
            {
                previousValue.ChartSeries.Remove(this);
            }

            if (SmartChart != null)
            {
                if (!SmartChart.ChartSeries.Contains(this))
                {
                    SmartChart.ChartSeries.Add(this);
                }
                if (idSmartChart != SmartChart.idSmartChart)
                {
                    idSmartChart = SmartChart.idSmartChart;
                }
            }
            else if (!_settingFK)
            {
                idSmartChart = null;
            }
        }