diff --git a/ParionsCuite/ParionsCuite/App.xaml.cs b/ParionsCuite/ParionsCuite/App.xaml.cs index e165633..5ab4978 100644 --- a/ParionsCuite/ParionsCuite/App.xaml.cs +++ b/ParionsCuite/ParionsCuite/App.xaml.cs @@ -1,7 +1,12 @@ -namespace ParionsCuite; +using ParionsCuite.Modeles; + +namespace ParionsCuite; public partial class App : Application { + + + public App() { InitializeComponent(); diff --git a/ParionsCuite/ParionsCuite/AppShell.xaml b/ParionsCuite/ParionsCuite/AppShell.xaml index 68be995..45425cf 100644 --- a/ParionsCuite/ParionsCuite/AppShell.xaml +++ b/ParionsCuite/ParionsCuite/AppShell.xaml @@ -5,18 +5,42 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:ParionsCuite" xmlns:views="clr-namespace:ParionsCuite.Views" - xmlns:participation="clr-namespace:ParionsCuite.Views.Participation" + xmlns:participation="clr-namespace:ParionsCuite.Views.Participations" xmlns:invite="clr-namespace:ParionsCuite.Views.Invite" xmlns:pari="clr-namespace:ParionsCuite.Views.Pari" - xmlns:info="clr-namespace:ParionsCuite" + xmlns:info="clr-namespace:ParionsCuite.Views.Information" + Shell.FlyoutBehavior="Disabled"> - + + + + + + + + + + + + + + + diff --git a/ParionsCuite/ParionsCuite/Modeles/Evenement.cs b/ParionsCuite/ParionsCuite/Modeles/Evenement.cs index 450fbb2..64f19bc 100644 --- a/ParionsCuite/ParionsCuite/Modeles/Evenement.cs +++ b/ParionsCuite/ParionsCuite/Modeles/Evenement.cs @@ -9,7 +9,6 @@ namespace ParionsCuite.Modeles public class Evenement { public string nom { get; private set; } - public DateTime date { get; private set; } @@ -21,7 +20,7 @@ namespace ParionsCuite.Modeles public Participation participation { get; private set; } - Evenement(string nom, DateTime date, string lieu, int heure, int minute, Participation participation) + public Evenement(string nom, DateTime date, string lieu, int heure, int minute, Participation participation) { this.nom = nom; this.date = date; @@ -33,7 +32,7 @@ namespace ParionsCuite.Modeles List list_parie = new List(); } - void setEvenement(string nom, DateTime date, string lieu, int heure, int minute) + public void setEvenement(string nom, DateTime date, string lieu, int heure, int minute) { this.nom = nom; this.date = date; diff --git a/ParionsCuite/ParionsCuite/Modeles/Manageur.cs b/ParionsCuite/ParionsCuite/Modeles/Manageur.cs index 2b74a00..a861866 100644 --- a/ParionsCuite/ParionsCuite/Modeles/Manageur.cs +++ b/ParionsCuite/ParionsCuite/Modeles/Manageur.cs @@ -8,18 +8,33 @@ namespace ParionsCuite.Modeles { public class Manageur { - public string nom { get; private set; } + public List evenement { get; private set; } - public string prenom { get; private set; } + public Manageur() + { + evenement = new List(); + } - public List ev { get; private set; } + public Manageur(List evenements) + { + evenement = evenements.ToList(); + } - Manageur(string nom, string prenom) - { - this.nom = nom; - this.prenom = prenom; - this.ev = new List(); + public bool Ajout_evenement(Evenement ev) + { + evenement.Add(ev); + foreach (Evenement e in evenement) + { + if (e == ev) + return true; + } + return false; } - + + public bool Supprimer_evenement(Evenement ev) + { + return evenement.Remove(ev); + } + } } diff --git a/ParionsCuite/ParionsCuite/Modeles/Participation.cs b/ParionsCuite/ParionsCuite/Modeles/Participation.cs index b347f3e..e58788c 100644 --- a/ParionsCuite/ParionsCuite/Modeles/Participation.cs +++ b/ParionsCuite/ParionsCuite/Modeles/Participation.cs @@ -8,7 +8,7 @@ namespace ParionsCuite.Modeles { public class Participation { - Participation() + public Participation() { List list_boisson = new List(); List list_autre = new List();