/// <summary>
 /// Determines of <c>this</c> has the same value as a given other instance
 /// </summary>
 /// <param name="other">The other instance</param>
 /// <returns>A <see cref="bool"/> indicating the result</returns>
 public bool ValueEquals(WavClip other)
 {
     if (other == null)
     {
         //System.Diagnostics.Debug.Fail("! ValueEquals !");
         return(false);
     }
     if (other.GetType() != GetType())
     {
         //System.Diagnostics.Debug.Fail("! ValueEquals !");
         return(false);
     }
     if (!ClipBegin.IsEqualTo(other.ClipBegin))
     {
         //System.Diagnostics.Debug.Fail("! ValueEquals !");
         return(false);
     }
     if (IsClipEndTiedToEOM != other.IsClipEndTiedToEOM)
     {
         //System.Diagnostics.Debug.Fail("! ValueEquals !");
         return(false);
     }
     if (!ClipEnd.IsEqualTo(other.ClipEnd))
     {
         //System.Diagnostics.Debug.Fail("! ValueEquals !");
         return(false);
     }
     if (!DataProvider.ValueEquals(other.DataProvider))
     {
         //System.Diagnostics.Debug.Fail("! ValueEquals !");
         return(false);
     }
     return(true);
 }
Beispiel #2
0
        public override bool ValueEquals(WithPresentation other)
        {
            if (!base.ValueEquals(other))
            {
                return(false);
            }

            ExternalVideoMedia otherz = other as ExternalVideoMedia;

            if (otherz == null)
            {
                return(false);
            }

            if (Src != otherz.Src)
            {
                return(false);
            }

            if (!ClipBegin.IsEqualTo(otherz.ClipBegin))
            {
                return(false);
            }
            if (!ClipEnd.IsEqualTo(otherz.ClipEnd))
            {
                return(false);
            }

            return(true);
        }