Exemplo n.º 1
0
        /// <summary>
        /// Sets the conversion of ticks.
        /// </summary>
        /// <param name="min">The minimal double value.</param>
        /// <param name="minDate">The minimal date, corresponding to minimal double value.</param>
        /// <param name="max">The maximal double value.</param>
        /// <param name="maxDate">The maximal date, correspondong to maximal double value.</param>
        public void SetConversion(double min, DateTime minDate, double max, DateTime maxDate)
        {
            var conversion = new DateTimeToDoubleConversion(min, minDate, max, maxDate);

            ConvertToDouble   = conversion.ToDouble;
            ConvertFromDouble = conversion.FromDouble;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Sets conversions of axis - functions used to convert values of axis type to and from double values of viewport.
        /// Sets both ConvertToDouble and ConvertFromDouble properties.
        /// </summary>
        /// <param name="min">The minimal viewport value.</param>
        /// <param name="minValue">The value of axis type, corresponding to minimal viewport value.</param>
        /// <param name="max">The maximal viewport value.</param>
        /// <param name="maxValue">The value of axis type, corresponding to maximal viewport value.</param>
        public override void SetConversion(double min, DateTime minValue, double max, DateTime maxValue)
        {
            var conversion = new DateTimeToDoubleConversion(min, minValue, max, maxValue);

            ConvertToDouble   = conversion.ToDouble;
            ConvertFromDouble = conversion.FromDouble;
        }