コード例 #1
0
ファイル: SeriesPresenter.cs プロジェクト: sulerzh/chart
        protected virtual void OnRemoved()
        {
            if (this.Removed != null)
            {
                this.Removed((object)this, new SeriesPresenterEventArgs(this.Series, (DataPoint)null));
            }
            this.UpdateRelatedSeriesPresenters();
            this.Series.ClearSelectedDataPoints();
            ChartArea chartArea = this.Series.ChartArea;

            this.Series.ChartArea = (ChartArea)null;
            chartArea.ChartAreaLayerProvider.RemoveLayer((object)this.Series);
            chartArea.ReapplyPalette();
            chartArea.DeactivateChildModel((FrameworkElement)this.Series);
        }