Esempio n. 1
0
        /// <summary>
        /// Equals Method
        /// </summary>
        /// <param name="fd"></param>
        /// <returns></returns>
        public bool Equals(BorderPartData bpd)
        {
            // If parameter is null return false:
            if ((object)bpd == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return((this.colorId == bpd.colorId) && (this.style == bpd.style));
        }
Esempio n. 2
0
        /// <summary>
        /// Equals Method
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to FillDataList return false.
            BorderPartData bpd = obj as BorderPartData;

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

            // Return true if the fields match:
            return((this.colorId == bpd.colorId) && (this.style == bpd.style));
        }