diff --git a/Sources/Model/Bestiaire.cs b/Sources/Model/Bestiaire.cs index 9a000f9..1b5e4d8 100644 --- a/Sources/Model/Bestiaire.cs +++ b/Sources/Model/Bestiaire.cs @@ -13,13 +13,19 @@ namespace Model public string Origine { get; set; } public string Description { get; set; } public string Caracteristique { get; set; } + public string? Image { get; set; } - public Bestiaire(string nom, string origine, string description, string caracteristique) + public Bestiaire(string nom, string origine, string description, string caracteristique) { - Nom = nom; + Nom = nom; Origine = origine; Description = description; Caracteristique = caracteristique; } + + public Bestiaire(string nom, string origine, string description, string caracteristique,string image) : this(nom,origine,description,caracteristique) + { + Image = image; + } } } diff --git a/Sources/Model/Stub/StubBestiaire.cs b/Sources/Model/Stub/StubBestiaire.cs new file mode 100644 index 0000000..57dc408 --- /dev/null +++ b/Sources/Model/Stub/StubBestiaire.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model.Stub +{ + public static class StubBestiaire + { + public static IEnumerable RecupererBestiaire() + { + List best = new List() + { + new Bestiaire("Humains", "??", "Les humains sont ...","Ils possèdent les caractéristiques suivantes ...","humain.png"), + new Bestiaire("Géants", "Elbaf", "Les géants sont ...","Ils possèdent les caractéristiques suivantes ...","geant.png"), + new Bestiaire("Hommes poissons", "Îles des hommes poissons", "Les hommes poissons sont ...","Ils possèdent les caractéristiques suivantes ...","hpoisson.png"), + new Bestiaire("Lunariens", "Redline", "Les lunariens sont ...","Ils possèdent les caractéristiques suivantes ...","lunarien.png"), + new Bestiaire("Minks", "Zo", "Les minks sont ...","Ils possèdent les caractéristiques suivantes ...","minks.png"), + + }; + return best; + } + } +} diff --git a/Sources/Ohara/AppShell.xaml b/Sources/Ohara/AppShell.xaml index d21618c..82197fd 100644 --- a/Sources/Ohara/AppShell.xaml +++ b/Sources/Ohara/AppShell.xaml @@ -13,8 +13,8 @@ + ContentTemplate="{DataTemplate local:PageInfoFdd}" + Route="PageInfoFdd" /> diff --git a/Sources/Ohara/MainPage.xaml b/Sources/Ohara/MainPage.xaml index 43e3adf..eaa63aa 100644 --- a/Sources/Ohara/MainPage.xaml +++ b/Sources/Ohara/MainPage.xaml @@ -17,12 +17,12 @@ - + - +