示例#1
0
 /// <summary>
 /// Copy all data from another object
 /// </summary>
 /// <param name="Dat">Source information</param>
 public void CopyFrom(IMAIMPFileInfoReadOnly Dat)
 {
     IsActive = Dat.IsActive;
     BitRate = Dat.BitRate;
     ChanelNumber = Dat.ChanelNumber;
     Duration = Dat.Duration;
     FileSize = Dat.FileSize;
     Rating = Dat.Rating;
     SampleRate = Dat.SampleRate;
     TrackID = Dat.TrackID;
     Album = Dat.Album;
     Artist = Dat.Artist;
     Date = Dat.Date;
     Genre = Dat.Genre;
     Title = Dat.Title;
     FileName = Dat.FileName;
 }
 /// <summary>
 /// Set track information for particular file inside playlist (can change the path to track)
 /// </summary>
 /// <param name="ID">Poition of track inside playlist</param>
 /// <param name="Val">New information</param>
 public abstract void SetTrackInformation(Int32 ID, IMAIMPFileInfoReadOnly Val);
 /// <summary>
 /// Insert track to playlist
 /// </summary>
 /// <param name="Pos">Position of new track</param>
 /// <param name="finf">Information about track</param>
 /// <returns>Success</returns>
 public abstract Boolean Insert(Int32 Pos, IMAIMPFileInfoReadOnly finf);
 /// <summary>
 /// Set track information except path for particular file inside playlist.
 /// (Change only tags info)
 /// </summary>
 /// <param name="ID">Poition of track inside playlist</param>
 /// <param name="finf">New information</param>
 public abstract void SetOnlyTagInformation(Int32 ID, IMAIMPFileInfoReadOnly finf);
 /// <summary>
 /// Add new track to playlist
 /// </summary>
 /// <param name="finf">Information about track</param>
 /// <returns>Success</returns>
 public abstract Boolean Add(IMAIMPFileInfoReadOnly finf);