Example #1
0
        public static PlaylistSave LoadFrom(string path)
        {
            var          xmlRW = new WWXmlRW.XmlRW <PlaylistSave>(path, false);
            PlaylistSave p     = xmlRW.Load();

            OverwritePlaylist(p);

            return(p);
        }
Example #2
0
        public static PlaylistSave Load()
        {
            var          xmlRW = new WWXmlRW.XmlRW <PlaylistSave>(m_fileName, true);
            PlaylistSave p     = xmlRW.Load();

            OverwritePlaylist(p);

            return(p);
        }
Example #3
0
        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);
        }
 private static void OverwritePlaylist(PlaylistSave p)
 {
     // TODO: ロード後に、強制的に上書きしたいパラメータがある場合はここで上書きする。
 }
 public static bool SaveAs(PlaylistSave p, string path)
 {
     var xmlRW = new WWXmlRW.XmlRW<PlaylistSave>(path, false);
     return xmlRW.Save(p);
 }
 public static bool Save(PlaylistSave p)
 {
     var xmlRW = new WWXmlRW.XmlRW<PlaylistSave>(m_fileName, true);
     return xmlRW.Save(p);
 }
Example #7
0
        public static bool SaveAs(PlaylistSave p, string path)
        {
            var xmlRW = new WWXmlRW.XmlRW <PlaylistSave>(path, false);

            return(xmlRW.Save(p));
        }
Example #8
0
        public static bool Save(PlaylistSave p)
        {
            var xmlRW = new WWXmlRW.XmlRW <PlaylistSave>(m_fileName, true);

            return(xmlRW.Save(p));
        }
Example #9
0
 private static void OverwritePlaylist(PlaylistSave p)
 {
     // TODO: ロード後に、強制的に上書きしたいパラメータがある場合はここで上書きする。
 }