diff --git a/MangaMap/App.xaml.cs b/MangaMap/App.xaml.cs index f247bfb..4743ffd 100644 --- a/MangaMap/App.xaml.cs +++ b/MangaMap/App.xaml.cs @@ -6,8 +6,8 @@ namespace MangaMap; public partial class App : Application { - //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.DataContract()); + 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.DataContract()); public Admin MyAdmin { get; private set; } = new Admin("test", "test@test.ts", "Pseudo_test"); diff --git a/MangaMap/Views/FicheAnime.xaml.cs b/MangaMap/Views/FicheAnime.xaml.cs index 027c4c1..11c6adc 100644 --- a/MangaMap/Views/FicheAnime.xaml.cs +++ b/MangaMap/Views/FicheAnime.xaml.cs @@ -1,9 +1,18 @@ -namespace MangaMap.Views; - -public partial class ficheAnime : ContentPage -{ - public ficheAnime() - { - InitializeComponent(); - } +namespace MangaMap.Views; +using Model; + +public partial class ficheAnime : ContentPage +{ + public Oeuvre AnimeModel { get; set; } + + public ficheAnime() + { + InitializeComponent(); + + // Exemple de création d'une instance de la classe Oeuvre + List genres = new List() { "Action", "Aventure" }; + AnimeModel = new Oeuvre("Nom de l'oeuvre", genres, "Type de l'oeuvre", "Description de l'oeuvre", 5, 12, "Chemin/vers/l'affiche.png"); + + 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"/> +