Inheritance: ObservableObject
Ejemplo n.º 1
0
        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");
        }
Ejemplo n.º 2
0
        private void DataPointAdded(DataPoint obj)
        {
            if(FocusedDataSeriesIndex < 0)
            {
                FocusedDataSeriesIndex = 0;
            }

            if(FocusedDataPointIndex < 0)
            {
                FocusedDataPointIndex = 0;
            }

            this.FirePropertyChanged("DataSeriesCollection");
        }