Пример #1
0
        /// <summary>
        /// Porównuje czy jeden System.Object jest równy drugiemu
        /// </summary>
        /// <param name="o">System.Object do porównania.</param>
        /// <returns>Równy czy nie.</returns>
        public override bool Equals(object obj)
        {
            SSAEventEntry other = obj as SSAEventEntry;

            if (other != null)
            {
                return(Equals(other));
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
        /// <summary>
        /// Porównuje czy jeden obiekt Entry jest równy drugiemu
        /// </summary>
        /// <param name="other">Obiekt Selection do porównania.</param>
        /// <returns>Równy czy nie.</returns>
        public override bool Equals(Entry other)
        {
            SSAEventEntry otherSSAEventEntry = other as SSAEventEntry;

            if (otherSSAEventEntry != null)
            {
                return((this.Format == otherSSAEventEntry.Format) &&
                       (this.Marked == otherSSAEventEntry.Marked) &&
                       (this.Style == otherSSAEventEntry.Style) &&
                       (this.Name == otherSSAEventEntry.Name) &&
                       (this.MarginL == otherSSAEventEntry.MarginL) &&
                       (this.MarginR == otherSSAEventEntry.MarginR) &&
                       (this.MarginV == otherSSAEventEntry.MarginV) &&
                       (this.Effect == otherSSAEventEntry.Effect) &&
                       (this.Text == otherSSAEventEntry.Text) &&
                       base.Equals(otherSSAEventEntry));
            }
            else
            {
                return(false);
            }
        }