Exemplo n.º 1
0
        /// <summary>
        /// Compares this and another mouse button combination and returns an indication of their relative values.
        /// </summary>
        /// <param name="other">Another object with which to compare.</param>
        /// <returns>A positive integer if this combination is relatively greater than the other, a negative integer if the reverse is true, or zero if the two are equal.</returns>
        public int CompareTo(XMouseButtonCombo other)
        {
            int result = MouseButtons.CompareTo(other.MouseButtons);

            if (result != 0)
            {
                return(result);
            }
            return(Modifiers.CompareTo(other.Modifiers));
        }