Ejemplo n.º 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)
        {
            AssEventEntry other = obj as AssEventEntry;

            if (other != null)
            {
                return(Equals(other));
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 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)
        {
            AssEventEntry otherAssEventEntry = other as AssEventEntry;

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