예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="list"></param>
        public void ApplyScale(Y2AxisList list)
        {
            int count = Math.Min(list.Count, Count);

            for (int i = 0; i < count; i++)
            {
                this[i].ApplyScale(list[i]);
            }
        }
예제 #2
0
        /// <summary>
        /// Iterate through the list of <see c_ref="ScaleState" /> objects, comparing them
        /// to the state of the specified <see c_ref="Y2AxisList" /> <see c_ref="Axis" />
        /// objects.
        /// </summary>
        /// <param name="list">A <see c_ref="Y2AxisList" /> object specifying a list of
        /// <see c_ref="Axis" /> objects to be compared with this <see c_ref="ScaleStateList" />.
        /// </param>
        /// <returns>true if a difference is found, false otherwise</returns>
        public bool IsChanged(Y2AxisList list)
        {
            int count = Math.Min(list.Count, Count);

            for (int i = 0; i < count; i++)
            {
                if (this[i].IsChanged(list[i]))
                {
                    return(true);
                }
            }

            return(false);
        }