diff --git a/Sources/Model/FruitDuDemon.cs b/Sources/Model/FruitDuDemon.cs index 3ed6c65..81145b8 100644 --- a/Sources/Model/FruitDuDemon.cs +++ b/Sources/Model/FruitDuDemon.cs @@ -17,6 +17,7 @@ namespace Model public string Forces { get; set; } public string Faiblesses { get; set; } public List Utilisateur { get; set; }= new List(); + public string? Image { get; set; } public FruitDuDemon(string nom, string nomRomanise, string type, int premierChap, int premierEp, string description, string forces, string faiblesses) { @@ -30,6 +31,10 @@ namespace Model Faiblesses = faiblesses; } + public FruitDuDemon(string nom, string nomRomanise, string type, int premierChap, int premierEp, string description, string forces, string faiblesses,string image) : this(nom, nomRomanise, type, premierChap, premierEp, description, forces, faiblesses) + { + Image = image; + } public FruitDuDemon(string nom, string nomRomanise, string type, int premierChap, int premierEp, string description, string forces, string faiblesses, List utilisateur) : this( nom, nomRomanise, type, premierChap, premierEp, description, forces, faiblesses) { Utilisateur = utilisateur; diff --git a/Sources/Model/Stub/StubFruitDuDemon.cs b/Sources/Model/Stub/StubFruitDuDemon.cs new file mode 100644 index 0000000..d127427 --- /dev/null +++ b/Sources/Model/Stub/StubFruitDuDemon.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model.Stub +{ + public static class StubFruitDuDemon + { + public static IEnumerable RecupererFruit() + { + List fdd = new List() + { + + }; + return fdd; + } + } +} diff --git a/Sources/Ohara/AppShell.xaml b/Sources/Ohara/AppShell.xaml index 02b2def..0c44294 100644 --- a/Sources/Ohara/AppShell.xaml +++ b/Sources/Ohara/AppShell.xaml @@ -13,8 +13,8 @@ + ContentTemplate="{DataTemplate local:NewPage3}" + Route="NewPage3" /> diff --git a/Sources/Ohara/NewPage3.xaml b/Sources/Ohara/NewPage3.xaml index ecd33e6..3bc4383 100644 --- a/Sources/Ohara/NewPage3.xaml +++ b/Sources/Ohara/NewPage3.xaml @@ -53,8 +53,32 @@