Пример #1
0
        private void SavePlaylist(object p)
        {
            var sfd = new SaveFileDialog();

            sfd.CreatePrompt    = false;
            sfd.OverwritePrompt = true;
            sfd.Filter          = "PLAYLIST files (*.playlist) | *.playlist";
            if (sfd.ShowDialog() == true)
            {
                var ps = new PlaylistSaver();
                ps.Save(Playlist, sfd.FileName);
            }
        }
Пример #2
0
        private void SavePlaylist(object obj)
        {
            var sfd = new SaveFileDialog
            {
                CreatePrompt    = false,
                OverwritePrompt = true,
                Filter          = "PLAYLIST files (*.json) | *.json"
            };

            if (sfd.ShowDialog() == true)
            {
                var ps = new PlaylistSaver();
                ps.Save(Playlist, sfd.FileName);
            }
        }
Пример #3
0
 public ViewSaveSupport(PlaylistSaver aPlaylistSaver, SaveSupport aSaveSupport)
 {
     iPlaylistSaver = aPlaylistSaver;
     iSaveSupport   = aSaveSupport;
 }