/// <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) { MicroDVDEntry other = obj as MicroDVDEntry; if (other != null) { return(Equals(other)); } else { return(false); } }
/// <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) { MicroDVDEntry otherMicroDVDEntry = other as MicroDVDEntry; if (otherMicroDVDEntry != null) { return((this.Text == otherMicroDVDEntry.Text) && base.Equals(otherMicroDVDEntry)); } else { return(false); } }