@ -61,64 +61,64 @@ public partial class PageAdmin : ContentPage
}
break;
case2:
sortie =awaitDisplayPromptAsync("Informations sur le Jeu [2/10]","Date de Sortie",accept:"Suivant",cancel:"Annuler",placeholder:"JJ/MM/AAAA");
if(string.IsNullOrEmpty(sortie))
resume =awaitDisplayPromptAsync("Informations sur le Jeu [2/10]","Résumé du jeu",accept:"Terminer",cancel:"Annuler",placeholder:"Résumé du jeu");
if(string.IsNullOrEmpty(resume))
{
annuler=true;
}
break;
case3:
plateformes=awaitDisplayPromptAsync("Informations sur le Jeu [3/10]","Plateforme(s), un espace pour séparer",accept:"Suivant",cancel:"Annuler",placeholder:"Ex: XOne PC PS5");
if(string.IsNullOrEmpty(plateformes))
sortie=awaitDisplayPromptAsync("Informations sur le Jeu [3/10]","Date de Sortie",accept:"Suivant",cancel:"Annuler",placeholder:"JJ/MM/AAAA");
if(string.IsNullOrEmpty(sortie))
{
annuler=true;
}
break;
case4:
developpeur=awaitDisplayPromptAsync("Informations sur le Jeu [4/10]","Développeur",accept:"Suivant",cancel:"Annuler",placeholder:"Rockstar Games");
if(string.IsNullOrEmpty(developpeur))
plateformes=awaitDisplayPromptAsync("Informations sur le Jeu [4/10]","Plateforme(s), un espace pour séparer",accept:"Suivant",cancel:"Annuler",placeholder:"Ex: XOne PC PS5");
if(string.IsNullOrEmpty(plateformes))
{
annuler=true;
}
break;
case5:
editeur =awaitDisplayPromptAsync("Informations sur le Jeu [5/10]","Editeur",accept:"Suivant",cancel:"Annuler",placeholder:"Take-Two Interactive");
if(string.IsNullOrEmpty(editeur))
developpeur =awaitDisplayPromptAsync("Informations sur le Jeu [5/10]","Développeur",accept:"Suivant",cancel:"Annuler",placeholder:"Rockstar Games");
if(string.IsNullOrEmpty(developpeur))
{
annuler=true;
}
break;
case6:
note=awaitDisplayPromptAsync("Informations sur le Jeu [6/10]","Note de 0 à 5",accept:"Suivant",cancel:"Annuler",maxLength:1,placeholder:"5");
if(string.IsNullOrEmpty(note))
editeur=awaitDisplayPromptAsync("Informations sur le Jeu [6/10]","Editeur",accept:"Suivant",cancel:"Annuler",placeholder:"Take-Two Interactive");
if(string.IsNullOrEmpty(editeur))
{
annuler=true;
}
break;
case7:
nbTelechargement=awaitDisplayPromptAsync("Informations sur le Jeu [7/10]","Nombre de Téléchargements (en milliers, ex: 630k)",accept:"Suivant",cancel:"Annuler",placeholder:"630");
if(string.IsNullOrEmpty(nbTelechargement))
note=awaitDisplayPromptAsync("Informations sur le Jeu [7/10]","Note de 0 à 10",accept:"Suivant",cancel:"Annuler",maxLength:3,placeholder:"4,5");
if(string.IsNullOrEmpty(note))
{
annuler=true;
}
break;
case8:
genre=awaitDisplayPromptAsync("Informations sur le Jeu [8/10]","Genre(s), un espace pour séparer",accept:"Suivant",cancel:"Annuler",placeholder:"Action Aventure");
if(string.IsNullOrEmpty(genre))
nbTelechargement=awaitDisplayPromptAsync("Informations sur le Jeu [8/10]","Nombre de Téléchargements (en milliers, ex: 630k)",accept:"Suivant",cancel:"Annuler",placeholder:"630");
if(string.IsNullOrEmpty(nbTelechargement))
{
annuler=true;
}
break;
case9:
image =awaitDisplayPromptAsync("Informations sur le Jeu [9/10]","Image de couverture (préférez URL finissant par .png)",accept:"Terminer",cancel:"Annuler",placeholder:"http://example.com/monimage.png");
if(string.IsNullOrEmpty(image))
genre =awaitDisplayPromptAsync("Informations sur le Jeu [9/10]","Genre(s), un espace pour séparer",accept:"Suivant",cancel:"Annuler",placeholder:"Action Aventure");
if(string.IsNullOrEmpty(genre))
{
annuler=true;
}
break;
break;
case10:
resume =awaitDisplayPromptAsync("Informations sur le Jeu [10/10]","Résumé du jeu",accept:"Terminer",cancel:"Annuler",placeholder:"Résumé du jeu");
if(string.IsNullOrEmpty(resume))
image =awaitDisplayPromptAsync("Informations sur le Jeu [10/10]","Image de couverture (préférez URL finissant par .png)",accept:"Terminer",cancel:"Annuler",placeholder:"http://example.com/monimage.png");
if(string.IsNullOrEmpty(image))
{
annuler=true;
}
@ -130,7 +130,7 @@ public partial class PageAdmin : ContentPage
<Label Grid.Row="1" Grid.ColumnSpan="2" Text="Hogwarts Legacy est un jeu de rôle d'action et d'aventure solo basé sur l'univers de Harry Potter, dans lequel le joueur incarne un nouveau venu dans le château enchanté tant apprécié des fans des livres et de la franchise cinématographique." FontFamily="PTSansNRegular" FontSize="10" TextColor="{StaticResource Gray500}" VerticalOptions="Center"/>