From 16e0727d6841fec996744781893118b84b7f975d Mon Sep 17 00:00:00 2001 From: "yannis.doumir_fernandes" Date: Fri, 9 Jun 2023 14:43:15 +0200 Subject: [PATCH] modified: "Sources/Mod\303\250le/Monstre.cs" modified: Sources/Vues/SearchMob.xaml.cs --- Sources/Modèle/Monstre.cs | 13 ------------- Sources/Vues/SearchMob.xaml.cs | 3 ++- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Sources/Modèle/Monstre.cs b/Sources/Modèle/Monstre.cs index 46ba061..24bb8f6 100644 --- a/Sources/Modèle/Monstre.cs +++ b/Sources/Modèle/Monstre.cs @@ -76,19 +76,6 @@ namespace Model public string ImageLink { get; init ; } - public bool IsChecked - { - get { return isChecked; } - set - { - if (isChecked != value) - { - isChecked = value; - OnPropertyChanged(nameof(IsChecked)); - } - } - } - private bool isChecked; public Monstre(int id, string name, string danger, string desc, List characList, List appearList, ObservableCollection conseilList) { if (string.IsNullOrWhiteSpace(name) || string.IsNullOrWhiteSpace(desc) || string.IsNullOrWhiteSpace(danger)) diff --git a/Sources/Vues/SearchMob.xaml.cs b/Sources/Vues/SearchMob.xaml.cs index e1aa67e..8ceea19 100644 --- a/Sources/Vues/SearchMob.xaml.cs +++ b/Sources/Vues/SearchMob.xaml.cs @@ -55,7 +55,6 @@ public partial class SearchMob : ContentPage, INotifyPropertyChanged (App.Current as App).MonstreSelectionne = e.Item as Monstre; imageCollection.Source = imageLinkConverter((App.Current as App).MonstreSelectionne.AppearanceList.First()); AddConseilLayout.IsVisible = false; - CheckDejaVu.IsChecked = (App.Current as App).MonstreSelectionne.IsChecked; // Mets la checkbox "Déjà vu" en true ou false selon la propriété IsChecked du monstre sélectionné refreshScrollView(); } private void OnAddConseilClicked(object sender, EventArgs e) @@ -165,6 +164,7 @@ public partial class SearchMob : ContentPage, INotifyPropertyChanged private void CheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e) { + /* if (CheckDejaVu.IsChecked) { if ((App.Current as App).User != null) @@ -181,6 +181,7 @@ public partial class SearchMob : ContentPage, INotifyPropertyChanged (Application.Current as App).User.monstresDejaVu.Remove((Application.Current as App).MonstreSelectionne); } } + */ ///Si checkbox check ///add le monstre courant à la liste des monstre du user