public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ExternalFileData otherz = other as ExternalFileData; if (otherz == null) { return(false); } if (OriginalRelativePath != otherz.OriginalRelativePath) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (!DataProvider.ValueEquals(otherz.DataProvider)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ManagedAudioMedia otherz = other as ManagedAudioMedia; if (otherz == null) { return(false); } if (otherz.HasActualAudioMediaData != HasActualAudioMediaData) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (HasActualAudioMediaData && !AudioMediaData.ValueEquals(otherz.AudioMediaData)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } AbstractImageMedia otherz = other as AbstractImageMedia; if (otherz == null) { return(false); } if (ResizeMode != otherz.ResizeMode) { return(false); } if (Height != otherz.Height) { return(false); } if (Width != otherz.Width) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } Channel otherz = other as Channel; if (otherz == null) { return(false); } if (Name != otherz.Name) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (Language != otherz.Language) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } return(true); }
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); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } SequenceMedia otherz = other as SequenceMedia; if (otherz == null) { return(false); } if (AllowMultipleTypes != otherz.AllowMultipleTypes) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (otherz.mSequence.Count != mSequence.Count) { return(false); } for (int i = 0; i < mSequence.Count; i++) { if (!mSequence.Get(i).ValueEquals(otherz.mSequence.Get(i))) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } MediaDataManager otherManager = other as MediaDataManager; if (otherManager == null) { return(false); } if (otherManager.EnforceSinglePCMFormat != EnforceSinglePCMFormat) { return(false); } if (!otherManager.DefaultPCMFormat.ValueEquals(DefaultPCMFormat)) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } FileDataProvider otherz = other as FileDataProvider; if (otherz == null) { return(false); } if (otherz.MimeType != MimeType) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (Presentation.DataProviderManager.CompareByteStreamsDuringValueEqual && other.Presentation.DataProviderManager.CompareByteStreamsDuringValueEqual) { if (!DataProviderManager.CompareDataProviderContent(this, otherz)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } XmlProperty otherz = other as XmlProperty; if (otherz == null) { return(false); } if (LocalName != otherz.LocalName) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } string nsUri = GetNamespaceUri(); string nsUriOther = otherz.GetNamespaceUri(); if (nsUri != nsUriOther) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } ObjectListProvider <XmlAttribute> thisAttrs = Attributes; ObjectListProvider <XmlAttribute> otherAttrs = otherz.Attributes; if (thisAttrs.Count != otherAttrs.Count) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } foreach (XmlAttribute thisAttr in thisAttrs.ContentsAs_Enumerable) { XmlAttribute otherAttr = otherz.GetAttribute(thisAttr.LocalName, thisAttr.GetNamespaceUri()); if (otherAttr == null) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (otherAttr.Value != thisAttr.Value) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ExternalFilesDataManager otherManager = other as ExternalFilesDataManager; if (otherManager == null) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ChannelsProperty otherz = other as ChannelsProperty; if (otherz == null) { return(false); } IList <Channel> chs = new List <Channel>(UsedChannels); IList <Channel> otherChs = new List <Channel>(otherz.UsedChannels); if (chs.Count != otherChs.Count) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } foreach (Channel ch in chs) { Channel otherCh = null; foreach (Channel ch2 in otherChs) { if (ch.Uid == ch2.Uid) { otherCh = ch2; break; } } if (otherCh == null) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (!GetMedia(ch).ValueEquals(otherz.GetMedia(otherCh))) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } DataProviderManager otherManager = other as DataProviderManager; if (otherManager == null) { return(false); } //if (otherManager.DataFileDirectory != DataFileDirectory) return false; return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } CompositeCommand otherz = other as CompositeCommand; if (otherz == null) { return(false); } if (otherz.ChildCommands.Count != mCommands.Count) { return(false); } for (int i = 0; i < mCommands.Count; i++) { if (!mCommands.Get(i).ValueEquals(otherz.ChildCommands.Get(i))) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } //foreach (Command cmd in mCommands) //{ // bool foundEqualCommand = false; // foreach (Command cmdOther in otherz.Commands) // { // if (cmdOther.ValueEquals(cmd)) // { // foundEqualCommand = true; // break; // } // } // if (!foundEqualCommand) // { // return false; // } //} return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } AlternateContentMetadataSetNameCommand otherz = other as AlternateContentMetadataSetNameCommand; if (otherz == null) { return(false); } // TODO: test local equality return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } TreeNodeAudioStreamDeleteCommand otherz = other as TreeNodeAudioStreamDeleteCommand; if (otherz == null) { return(false); } // TODO: test local equality return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } MetadataAddCommand otherz = other as MetadataAddCommand; if (otherz == null) { return(false); } // TODO: test local equality return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ManagedAudioMediaInsertDataCommand otherz = other as ManagedAudioMediaInsertDataCommand; if (otherz == null) { return(false); } // TODO: test local equality return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } Metadata otherz = other as Metadata; if (otherz == null) { return(false); } if (!NameContentAttribute.ValueEquals(otherz.NameContentAttribute)) { return(false); } if (OtherAttributes.Count != otherz.OtherAttributes.Count) { return(false); } foreach (MetadataAttribute attr in OtherAttributes.ContentsAs_Enumerable) { bool oneIsEqual = false; foreach (MetadataAttribute attrOther in otherz.OtherAttributes.ContentsAs_Enumerable) { if (attrOther.ValueEquals(attr)) { oneIsEqual = true; break; } } if (!oneIsEqual) { return(false); } } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } WavAudioMediaData otherz = other as WavAudioMediaData; if (otherz == null) { return(false); } //Here we do not compare the WavClip/FileDataProvider equality. Instead, we let the super class compare the resulting streams of PCM data. //See AudioMediaData.ValueEquals(); return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } AbstractTextMedia otherz = other as AbstractTextMedia; if (otherz == null) { return(false); } //TODO: is there a more reliable way to handle DOS versus UNIX line breaks at the end of the strings ?? try { string str1 = Text; string str2 = otherz.Text; str1 = str1.Replace("\r\n", "\n"); str2 = str2.Replace("\r\n", "\n"); if (!str1.Equals(str2)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } catch (Exception e) { // WebClient failure in unit-tests, non-existing file. //Debugger.Break(); } //if (Text != otherz.Text) //{ // return false; //} return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } AbstractAudioMedia otherz = other as AbstractAudioMedia; if (otherz == null) { return(false); } if (!Duration.IsEqualTo(otherz.Duration)) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ExternalTextMedia otherz = other as ExternalTextMedia; if (otherz == null) { return(false); } if (Src != otherz.Src) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } ExampleCustomProperty otherz = other as ExampleCustomProperty; if (otherz == null) { return(false); } if (CustomData != otherz.CustomData) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } MediaData otherz = other as MediaData; if (otherz == null) { return(false); } //if (Name != otherz.Name) //{ // //System.Diagnostics.Debug.Fail("! ValueEquals !"); // return false; //} return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } Command otherz = other as Command; if (otherz == null) { return(false); } if (LongDescription != otherz.LongDescription) { return(false); } if (ShortDescription != otherz.ShortDescription) { return(false); } return(true); }
public override bool ValueEquals(WithPresentation other) { if (!base.ValueEquals(other)) { return(false); } AudioMediaData otherz = other as AudioMediaData; if (otherz == null) { return(false); } if (OriginalRelativePath != null && DataProvider != null) { if (OriginalRelativePath != otherz.OriginalRelativePath) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (!DataProvider.ValueEquals(otherz.DataProvider)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } return(true); } if (!PCMFormat.ValueEquals(otherz.PCMFormat)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (PCMFormat.Data.ConvertTimeToBytes(AudioDuration.AsLocalUnits) != otherz.PCMFormat.Data.ConvertTimeToBytes(otherz.AudioDuration.AsLocalUnits)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } if (HasActualPcmData != otherz.HasActualPcmData) { return(false); } if (HasActualPcmData) { Stream thisData = OpenPcmInputStream(); try { Stream otherdata = otherz.OpenPcmInputStream(); try { if (!AudioLibPCMFormat.CompareStreamData(thisData, otherdata, (int)thisData.Length)) { //System.Diagnostics.Debug.Fail("! ValueEquals !"); return(false); } } finally { otherdata.Close(); } } finally { thisData.Close(); } } return(true); }