DeleteContentCommand = new Command<MediaInformationEx>((SelectedItem) =>
{
- if (!SelectedItem.Equals(""))
+ if (SelectedItem != null)
{
SelectedList.Clear();
SelectedList.Add(SelectedItem);
});
DeleteContentCommand = new Command<MediaInformationEx>((SelectedItem) =>
{
- if (!SelectedItem.Equals(""))
+ if (SelectedItem != null)
{
SelectedList.Clear();
SelectedList.Add(SelectedItem);
if (answer)
{
- DeleteContentCommand?.Execute("");
+ DeleteContentCommand?.Execute(null);
GetInformationsCommand?.Execute("");
}
bool answer = await DisplayAlert("Delete", "Delete '" + info.MediaContentInformation.Title + "'?", "Yes", "No");
if (answer)
{
- DeleteContentCommand?.Execute(item);
+ DeleteContentCommand?.Execute(info);
+ GetInformationsCommand?.Execute("");
}
break;
if (answer)
{
- DeleteContentCommand?.Execute("");
+ DeleteContentCommand?.Execute(null);
GetInformationsCommand?.Execute("");
}
bool answer = await DisplayAlert("Delete", "Delete '" + info.MediaContentInformation.Title + "'?", "Yes", "No");
if (answer)
{
- DeleteContentCommand?.Execute(item);
+ DeleteContentCommand?.Execute(info);
+ GetInformationsCommand?.Execute("");
}
break;