/// <summary> /// Set Playlist /// </summary> /// <param name="response">Playlist Response</param> private async void SetPlaylist(PlaylistResponse response) { var dialog = new PlaylistDialog(response); var result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary && dialog.SetPlaylist.Result.IsSuccess) { Refresh(); } }
/// <summary> /// Add Playlist /// </summary> private async void AddPlaylist() { var current = await Client.GetCurrentUserAsync(); var dialog = new PlaylistDialog(current); var result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary && dialog.AddPlaylist.Result.IsSuccess) { NavigatePage(dialog.AddPlaylist.Result); } }