コード例 #1
0
 private void RemoveDeletedItems(List <Audio> items)
 {
     if (LastPivotIndex == 1)
     {
         foreach (var audio in items)
         {
             InCollectionResults.Remove(audio);
         }
     }
 }
コード例 #2
0
 private void RemoveDeletedItems(List <Video> items)
 {
     if (LastPivotIndex == 1)
     {
         foreach (var video in items)
         {
             InCollectionResults.Remove(video);
         }
     }
 }
コード例 #3
0
        private async void OnDeleteCommand(Audio track)
        {
            _appLoaderService.Show(String.Format(_locService["AppLoader_DeletingItem"], track.ToString()));

            bool isSuccess = false;

            try
            {
                isSuccess = await DeleteAudio(track);
            }
            catch (Exception) { }

            if (!isSuccess)
            {
                _dialogsService.Show(_locService["Message_AudioDeleteError_Text"],
                                     _locService["Message_AudioDeleteError_Title"]);
            }
            else if (LastPivotIndex == 1)
            {
                InCollectionResults.Remove(track);
            }

            _appLoaderService.Hide();
        }