/// <summary>
 /// Update axes when a data point's effective independent value changes.
 /// </summary>
 private void UpdateActualIndependentAxis()
 {
     if (InternalActualIndependentAxis != null)
     {
         ICategoryAxis categoryAxis = InternalActualIndependentAxis as ICategoryAxis;
         if (categoryAxis != null)
         {
             IDataProvider categoryInformationProvider = (IDataProvider)this;
             categoryAxis.DataChanged(categoryInformationProvider, categoryInformationProvider.GetData(categoryAxis));
         }
         IRangeConsumer rangeAxis = InternalActualIndependentAxis as IRangeConsumer;
         if (rangeAxis != null)
         {
             IRangeProvider rangeInformationProvider = (IRangeProvider)this;
             rangeAxis.RangeChanged(rangeInformationProvider, rangeInformationProvider.GetRange(rangeAxis));
         }
     }
 }
        /// <summary>
        ///     Update axes when the specified data point's effective dependent value changes.
        /// </summary>
        private void UpdateActualDependentAxis()
        {
            if (InternalActualDependentAxis != null)
            {
                var dataConsumer = InternalActualDependentAxis as IDataConsumer;
                if (dataConsumer != null)
                {
                    IDataProvider categoryInformationProvider = this;
                    dataConsumer.DataChanged(categoryInformationProvider,
                                             categoryInformationProvider.GetData(dataConsumer));
                }

                var rangeAxis = InternalActualDependentAxis as IRangeConsumer;
                if (rangeAxis != null)
                {
                    IRangeProvider rangeInformationProvider = this;
                    rangeAxis.RangeChanged(rangeInformationProvider, rangeInformationProvider.GetRange(rangeAxis));
                }
            }
        }
        public void GetNumericRangeWithNullAxis()
        {
            IRangeProvider series = (IRangeProvider)DataPointSingleSeriesWithAxesToTest;

            series.GetRange(null);
        }
Example #4
0
 public async Task <TResult> ChooseAsync() => await _chooser.ChooseAsync(_range.GetRange());