Exemplo n.º 1
0
        private async void EditButton_Click(object sender, RoutedEventArgs e)
        {
            String nTitle = await Helper.InputTextDialogAsync("Rename Playlist", "Rename");

            String oldTitle = this.selectedPlaylist.Title;

            this.selectedPlaylist.Title = nTitle;
            await DataIO.SavePlaylist(this.selectedPlaylist, oldTitle);

            this.loadPlaylists();
        }
Exemplo n.º 2
0
        private async void AddPlaylistButton_Click(object sender, RoutedEventArgs e)
        {
            String plName = await Helper.InputTextDialogAsync("Playlist name", "Add");

            if (plName == "")
            {
                return;
            }
            var npl = new Playlist(plName);
            await DataIO.SavePlaylist(npl);

            this.PlaylistList.Items.Clear();
            this.loadPlaylists();
        }