Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public bool Equals(FontColor p)
        {
            if ((object)p == null)
            {
                return(false);
            }

            return((this.Name == p.Name) && (this.Brush.Equals(p.Brush)));
        }
Esempio n. 2
0
        /// <summary>
        /// Checking Equals
        /// </summary>
        /// <param name="obj">param</param>
        /// <returns></returns>
        public override bool Equals(System.Object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            FontColor p = obj as FontColor;

            if ((System.Object)p == null)
            {
                return(false);
            }

            return((this.Name == p.Name) && (this.Brush.Equals(p.Brush)));
        }