diff --git a/LOLAPP/LOLAPP/MainPage.xaml b/LOLAPP/LOLAPP/MainPage.xaml
index 7695ff7..f6e9d70 100644
--- a/LOLAPP/LOLAPP/MainPage.xaml
+++ b/LOLAPP/LOLAPP/MainPage.xaml
@@ -8,52 +8,43 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/LOLAPP/LOLAPP/MainPage.xaml.cs b/LOLAPP/LOLAPP/MainPage.xaml.cs
index a5c06ab..559bb4d 100644
--- a/LOLAPP/LOLAPP/MainPage.xaml.cs
+++ b/LOLAPP/LOLAPP/MainPage.xaml.cs
@@ -10,17 +10,7 @@ public partial class MainPage : ContentPage
public MainPage()
{
InitializeComponent();
- MAQE.BindingContext = Cmanager;
- }
-
- private void OnCounterClicked(object sender, EventArgs e)
- {
- count++;
- if (count == 1)
- CounterBtn.Text = $"Clicked {count} time";
- else
- CounterBtn.Text = $"Clicked {count} times";
-
- SemanticScreenReader.Announce(CounterBtn.Text);
- }
+ BindingContext = Cmanager;
+ champ.BindingContext = Cmanager._champions;
+ }
}
\ No newline at end of file
diff --git a/LOLAPP/LOLAPP/Modele/Champion.cs b/LOLAPP/LOLAPP/Modele/Champion.cs
index f2f4ffe..320f555 100644
--- a/LOLAPP/LOLAPP/Modele/Champion.cs
+++ b/LOLAPP/LOLAPP/Modele/Champion.cs
@@ -11,9 +11,9 @@ namespace LOLAPP.Modele
public class Champion
{
[DataMember]
- public string Name { get; set; }
+ public string Name { get; private set; }
[DataMember]
- public List Abilities { get; set; }
+ public List Abilities { get; private set; }
public Champion(string name, List abilities)
{
diff --git a/LOLAPP/LOLAPP/Modele/Stub.cs b/LOLAPP/LOLAPP/Modele/Stub.cs
index 38e093f..3c0d1d0 100644
--- a/LOLAPP/LOLAPP/Modele/Stub.cs
+++ b/LOLAPP/LOLAPP/Modele/Stub.cs
@@ -17,7 +17,9 @@ namespace LOLAPP.Modele
Ability a1 = new Ability("Broken Wings");
a.Add(a1);
Champion c1 = new Champion("Riven", a);
+ Champion c2 = new Champion("Braum");
c.Add(c1);
+ c.Add(c2);
Utilisateur s1 = new Utilisateur("Broken", "Kala");
s.Add(s1);
return (s,c);