diff --git a/MangaMap/App.xaml.cs b/MangaMap/App.xaml.cs index 0e6767c..d992022 100644 --- a/MangaMap/App.xaml.cs +++ b/MangaMap/App.xaml.cs @@ -9,12 +9,12 @@ public partial class App : Application public string FileName { get; set; } = "SauvegardeDonnees.xml"; public string FilePath { get; set; } = Path.Combine(AppDomain.CurrentDomain.BaseDirectory); - public Manager MyManager { get; private set; } = new Manager(new Stub.Stub()); //pour utiliser le stub comme moyen de persistance. + public Manager MyManager { get; private set; } = new Manager(new Stub.Stub()); //pour utiliser le stub comme moyen de persistance. - public Admin MyAdmin { get; private set; } = new Admin("test", "test@test.ts", "Pseudo_test"); + public Admin MyAdmin { get; private set; } = new Admin("test", "test@test.ts", "Pseudo_test"); - public App() - { + public App() + { InitializeComponent(); if (File.Exists(Path.Combine(FilePath, FileName))) @@ -23,9 +23,9 @@ public partial class App : Application } MyManager.charger(); - MyManager.Admins.Add(MyAdmin); + MyManager.Admins.Add(MyAdmin); - MainPage = new AppShell(); + MainPage = new AppShell(); if (!File.Exists(Path.Combine(FilePath, FileName))) { diff --git a/MangaMap/Views/FicheAnime.xaml.cs b/MangaMap/Views/FicheAnime.xaml.cs index 027c4c1..13cd9be 100644 --- a/MangaMap/Views/FicheAnime.xaml.cs +++ b/MangaMap/Views/FicheAnime.xaml.cs @@ -1,9 +1,16 @@ -namespace MangaMap.Views; - -public partial class ficheAnime : ContentPage -{ - public ficheAnime() - { - InitializeComponent(); - } +namespace MangaMap.Views; +using Model; + +public partial class ficheAnime : ContentPage +{ + public Manager DataManager { get; set; } + + public ficheAnime() + { + InitializeComponent(); + + DataManager = new Manager(); + + this.BindingContext = this; + } } \ No newline at end of file diff --git a/MangaMap/Views/ficheAnime.xaml b/MangaMap/Views/ficheAnime.xaml index 9e94bfb..7e8bac3 100644 --- a/MangaMap/Views/ficheAnime.xaml +++ b/MangaMap/Views/ficheAnime.xaml @@ -46,7 +46,18 @@ Text="Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description. Je suis une description." Margin="20"/> +