Exemple #1
0
        public bool Equals(IToolbarSeparator other)
        {
            var item = other as iFactr.UI.ToolbarSeparator;

            if (item != null)
            {
                return(item.Equals(this));
            }

            return(base.Equals(other));
        }
Exemple #2
0
        /// <summary>
        /// Determines whether the specified <see cref="iFactr.UI.IToolbarSeparator"/> is equal to this instance.
        /// </summary>
        /// <param name="other">The <see cref="iFactr.UI.IToolbarSeparator"/> to compare with this instance.</param>
        /// <returns><c>true</c> if the specified <see cref="iFactr.UI.IToolbarSeparator"/> is equal to this instance;
        /// otherwise, <c>false</c>.</returns>
        public bool Equals(IToolbarSeparator other)
        {
            ToolbarSeparator item = other as ToolbarSeparator;

            if (item != null)
            {
                return(Pair == item.Pair);
            }

            return(Pair == other);
        }
        public bool Equals(IToolbarSeparator other)
        {
            var item = other as UI.ToolbarSeparator;

            return(item == null?ReferenceEquals(this, other) : item.Equals(this));
        }