PowerArgs.Cli.LineChartViewModel.DataPointRemoved C# (CSharp) Method

DataPointRemoved() private method

private DataPointRemoved ( DataPoint obj ) : void
obj DataPoint
return void
        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");
        }