private void FixupChartType(ChartTypeDto previousValue) { if (previousValue != null && previousValue.DataProviderXChartTypes.Contains(this)) { previousValue.DataProviderXChartTypes.Remove(this); } if (ChartType != null) { if (!ChartType.DataProviderXChartTypes.Contains(this)) { ChartType.DataProviderXChartTypes.Add(this); } if (idChartType != ChartType.idChartType) { idChartType = ChartType.idChartType; } } }
private void FixupChartType(ChartTypeDto previousValue) { if (previousValue != null && previousValue.SmartCharts.Contains(this)) { previousValue.SmartCharts.Remove(this); } if (ChartType != null) { if (!ChartType.SmartCharts.Contains(this)) { ChartType.SmartCharts.Add(this); } if (IdChartType != ChartType.idChartType) { IdChartType = ChartType.idChartType; } } else if (!_settingFK) { IdChartType = null; } }