Пример #1
0
        /// <summary>
        ///   Adds the specified <see cref="T:Crystal.IEvaluator"/> to this <see cref="T:Crystal.CompositeEvaluator"/>
        ///   if the new evaluator has a domain that does not overlap the domains of definition of the
        ///   <see cref="T:Crystal.IEvaluator"/> already added to this <see cref="T:Crystal.CompositeEvaluator"/>.
        /// </summary>
        /// <param name="ev">Ev.</param>
        public void Add(IEvaluator ev)
        {
            if (DoesNotOverlapWithAnyEvaluator(ev))
            {
                Evaluators.Add(ev);
            }

            Evaluators.Sort((e1, e2) => e1.XInterval.CompareTo(e2.XInterval));
            UpdateXyPoints();
        }