From 1d624184e1668eebe92afd20c0af28d9a370f5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoan=20BRUGI=C3=88RE?= Date: Sat, 8 Apr 2023 12:04:00 +0200 Subject: [PATCH] =?UTF-8?q?Stub=20+=20d=C3=A9but=20collection=20biding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Model/FruitDuDemon.cs | 5 ++++ Sources/Model/Stub/StubFruitDuDemon.cs | 20 +++++++++++++++ Sources/Ohara/AppShell.xaml | 4 +-- Sources/Ohara/NewPage3.xaml | 28 +++++++++++++++++++-- Sources/Ohara/NewPage3.xaml.cs | 15 ++++++++--- Sources/Ohara/Resources/Images/fumer.jpg | Bin 0 -> 6471 bytes Sources/Ohara/Resources/Styles/Styles.xaml | 6 ++--- Sources/TestConsole/Program.cs | 2 +- 8 files changed, 67 insertions(+), 13 deletions(-) create mode 100644 Sources/Model/Stub/StubFruitDuDemon.cs create mode 100644 Sources/Ohara/Resources/Images/fumer.jpg 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 @@