private void DataPointRemoved(DataPoint obj) { if(FocusedDataSeriesIndex >= 0 && FocusedDataPointIndex >= 0 && FocusedDataPointIndex >= FocusedDataSeries.DataPoints.Count) { if(FocusedDataSeries.DataPoints.Count == 0) { FocusedDataPointIndex = -1; } else { FocusedDataPointIndex--; } } this.FirePropertyChanged("DataSeriesCollection"); }
private void DataPointAdded(DataPoint obj) { if(FocusedDataSeriesIndex < 0) { FocusedDataSeriesIndex = 0; } if(FocusedDataPointIndex < 0) { FocusedDataPointIndex = 0; } this.FirePropertyChanged("DataSeriesCollection"); }