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); } }
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); } }
public ViewSaveSupport(PlaylistSaver aPlaylistSaver, SaveSupport aSaveSupport) { iPlaylistSaver = aPlaylistSaver; iSaveSupport = aSaveSupport; }