public new void Add(TMediaMarker mediaMarker) { if (mediaMarker is CaptionElement) { var comparable = new CaptionMarkerComparable(mediaMarker.Begin, (mediaMarker as CaptionElement).Index, true); Add(mediaMarker, comparable); } else { var comparable = new MediaMarkerComparable(mediaMarker.Begin); Add(mediaMarker, comparable); } }
public new void Add(TMediaMarker mediaMarker) { if (!_itemHash.ContainsKey(mediaMarker.Id)) { if (mediaMarker is CaptionElement) { var comparable = new CaptionMarkerComparable(mediaMarker.Begin, (mediaMarker as CaptionElement).Index, true); //var comparable = new MediaMarkerComparable(mediaMarker.End); Add(mediaMarker, comparable); } else { var comparable = new MediaMarkerComparable(mediaMarker.Begin); //var comparable = new MediaMarkerComparable(mediaMarker.End); Add(mediaMarker, comparable); } } }