From 201c874875553de0eb3235a0bc4c856da9d99f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoan=20BRUGI=C3=88RE?= Date: Sat, 29 Apr 2023 11:56:22 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20du=20bug=20avec=20InitializeCompon?= =?UTF-8?q?ent=20+=20d=C3=A9but=20manager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Model/IDataManager.cs | 18 ++++++++++++ Sources/Model/Manager.cs | 12 ++++++++ Sources/Ohara/Ohara.csproj | 16 ++++------- Sources/Ohara/PageFDD.xaml | 6 ++-- Sources/Ohara/PageIle.xaml | 14 +--------- Sources/Ohara/PageIle.xaml.cs | 32 +++++++++++++--------- Sources/Ohara/Resources/Styles/Styles.xaml | 11 ++++++-- 7 files changed, 69 insertions(+), 40 deletions(-) create mode 100644 Sources/Model/IDataManager.cs create mode 100644 Sources/Model/Manager.cs diff --git a/Sources/Model/IDataManager.cs b/Sources/Model/IDataManager.cs new file mode 100644 index 0000000..9575d14 --- /dev/null +++ b/Sources/Model/IDataManager.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public interface IDataManager + { + IEnumerable RecupererBateau(); + IEnumerable RecupererBestiaire(); + IEnumerable RecupererEquipage(); + IEnumerable RecupererFruit(); + IEnumerable RecupererIle(); + IEnumerable RecupererPersonnage(); + } +} diff --git a/Sources/Model/Manager.cs b/Sources/Model/Manager.cs new file mode 100644 index 0000000..e88378b --- /dev/null +++ b/Sources/Model/Manager.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + internal class Manager + { + } +} diff --git a/Sources/Ohara/Ohara.csproj b/Sources/Ohara/Ohara.csproj index 019f3b6..6055149 100644 --- a/Sources/Ohara/Ohara.csproj +++ b/Sources/Ohara/Ohara.csproj @@ -48,16 +48,6 @@ - - - - - - - MSBuild:UpdateDesignTimeXaml - - - @@ -91,6 +81,9 @@ + + MSBuild:Compile + MSBuild:Compile @@ -115,6 +108,9 @@ MSBuild:Compile + + MSBuild:Compile + diff --git a/Sources/Ohara/PageFDD.xaml b/Sources/Ohara/PageFDD.xaml index 87e7788..42607b5 100644 --- a/Sources/Ohara/PageFDD.xaml +++ b/Sources/Ohara/PageFDD.xaml @@ -55,13 +55,15 @@ - + - + + + + - - - - - - - - - diff --git a/Sources/Ohara/PageIle.xaml.cs b/Sources/Ohara/PageIle.xaml.cs index 9866785..2464390 100644 --- a/Sources/Ohara/PageIle.xaml.cs +++ b/Sources/Ohara/PageIle.xaml.cs @@ -1,28 +1,37 @@ -using Model.Stub; +using Model.Stub; using Model; namespace Ohara; public partial class PageIle : ContentPage { - public PageIle() - { - - InitializeComponent(); + public PageIle() + { + InitializeComponent(); List ile = StubIle.RecupererIle().ToList(); + listeIle.ItemsSource = ile; } - private async void Hyperlink_FDD(object sender, EventArgs e) + private void listeFDD_ScrollToRequested(object sender, ScrollToRequestEventArgs e) { - await Navigation.PushAsync(new PageFDD()); + + } + + private async void Hyperlink_Accueil(object sender, EventArgs e) + { + await Navigation.PushAsync(new MainPage()); } private async void Hyperlink_Equip(object sender, EventArgs e) { await Navigation.PushAsync(new PageEquipage()); } + private async void Hyperlink_FDD(object sender, EventArgs e) + { + await Navigation.PushAsync(new PageFDD()); + } private async void Hyperlink_Perso(object sender, EventArgs e) { await Navigation.PushAsync(new PagePersonnage()); @@ -31,16 +40,13 @@ public partial class PageIle : ContentPage { await Navigation.PushAsync(new PageCarte()); } - private async void Hyperlink_Accueil(object sender, EventArgs e) + private async void Hyperlink_Bateau(object sender, EventArgs e) { - await Navigation.PushAsync(new MainPage()); + await Navigation.PushAsync(new PageBateau()); } private async void Hyperlink_Bestiaire(object sender, EventArgs e) { await Navigation.PushAsync(new PageBestiaire()); } - private async void Hyperlink_Bateau(object sender, EventArgs e) - { - await Navigation.PushAsync(new PageBateau()); - } + } \ No newline at end of file diff --git a/Sources/Ohara/Resources/Styles/Styles.xaml b/Sources/Ohara/Resources/Styles/Styles.xaml index 207465c..ba43b25 100644 --- a/Sources/Ohara/Resources/Styles/Styles.xaml +++ b/Sources/Ohara/Resources/Styles/Styles.xaml @@ -480,6 +480,8 @@ + @@ -489,15 +491,20 @@ + + - + + Value="HorizontalList" /> +