public static PlaylistSave2 ConvertFrom(PlaylistSave p1) { var p2 = new PlaylistSave2(); p2.Version = CurrentVersion; foreach (var item in p1.Items) { var item2 = new PlaylistItemSave2(); item2.Set(item.Title, item.AlbumName, item.ArtistName, item.PathName, item.CueSheetIndex, item.StartTick, item.EndTick, item.ReadSeparaterAfter, -1, 0); p2.items.Add(item2); } return(p2); }
public void Add(PlaylistItemSave2 item) { items.Add(item); }