コード例 #1
0
ファイル: ToolbarItems.cs プロジェクト: chencai01/iFactr-WPF
        public bool Equals(IToolbarSeparator other)
        {
            var item = other as iFactr.UI.ToolbarSeparator;

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

            return(base.Equals(other));
        }
コード例 #2
0
ファイル: ToolbarSeparator.cs プロジェクト: Zebra/iFactr-iOS
        /// <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);
        }
コード例 #3
0
ファイル: ToolbarButton.cs プロジェクト: wyh0395/iFactr-NETCF
        public bool Equals(IToolbarSeparator other)
        {
            var item = other as UI.ToolbarSeparator;

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