コード例 #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
ファイル: MainWindowViewModel.cs プロジェクト: shugoPL/Player
        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);
            }
        }