Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>
        /// A new object that is a copy of this instance.
        /// </returns>
        public override object Clone()
        {
            AverageCondition condition = base.Clone() as AverageCondition;

            condition.type   = this.type;
            condition.ranges = ConditionBase.CloneRanges(this.ranges);
            return(condition);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initial condition for the rule.
        /// </summary>
        protected override void InitCondition()
        {
            base.InitCondition();
            AverageCondition condition = base.condition as AverageCondition;

            if (condition != null)
            {
                condition.Ranges = base.Ranges;
            }
        }