private void RemoveDeletedItems(List <Audio> items) { if (LastPivotIndex == 1) { foreach (var audio in items) { InCollectionResults.Remove(audio); } } }
private void RemoveDeletedItems(List <Video> items) { if (LastPivotIndex == 1) { foreach (var video in items) { InCollectionResults.Remove(video); } } }
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(); }