Added a DisplayAlert if the admin does not choose an image
continuous-integration/drone/push Build is failing Details

pull/46/head
HMatheo 2 years ago
parent eccbad718b
commit 48a806d138

@ -54,6 +54,12 @@ public partial class createOeuvre : ContentPage
int nbEp = Convert.ToInt32(nbEpisodeEntry.Text);
string description = descriptionEntry.Text;
if (imagePath == null)
{
await DisplayAlert("Erreur", "Veuillez sélectionner une image.", "OK");
return;
}
foreach (Oeuvre o in my_manager.Oeuvres)
{
if (o.Nom == nom)

Loading…
Cancel
Save