Exemplo 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)
        {
            SubripEntry other = obj as SubripEntry;

            if (other != null)
            {
                return(Equals(other));
            }
            else
            {
                return(false);
            }
        }
Exemplo 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)
        {
            SubripEntry otherSrtEntry = other as SubripEntry;

            if (otherSrtEntry != null)
            {
                return((this.Number == otherSrtEntry.Number) &&
                       (this.Text == otherSrtEntry.Text) &&
                       base.Equals(otherSrtEntry));
            }
            else
            {
                return(false);
            }
        }