modified: "Sources/Mod\303\250le/Monstre.cs"

modified:   Sources/Vues/SearchMob.xaml.cs
Collection
parent 67a9ee529f
commit 16e0727d68

@ -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<string> characList, List<string> appearList, ObservableCollection<Conseil> conseilList)
{
if (string.IsNullOrWhiteSpace(name) || string.IsNullOrWhiteSpace(desc) || string.IsNullOrWhiteSpace(danger))

@ -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

Loading…
Cancel
Save