thomas muzard 2 years ago
commit 6e1d0ec28f

@ -1,7 +1,12 @@
namespace ParionsCuite; using ParionsCuite.Modeles;
namespace ParionsCuite;
public partial class App : Application public partial class App : Application
{ {
public App() public App()
{ {
InitializeComponent(); InitializeComponent();

@ -5,18 +5,42 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:ParionsCuite" xmlns:local="clr-namespace:ParionsCuite"
xmlns:views="clr-namespace:ParionsCuite.Views" 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:invite="clr-namespace:ParionsCuite.Views.Invite"
xmlns:pari="clr-namespace:ParionsCuite.Views.Pari" xmlns:pari="clr-namespace:ParionsCuite.Views.Pari"
xmlns:info="clr-namespace:ParionsCuite" xmlns:info="clr-namespace:ParionsCuite.Views.Information"
Shell.FlyoutBehavior="Disabled"> Shell.FlyoutBehavior="Disabled">
<TabBar> <TabBar>
<ShellContent <Tab>
Title="Home" <ShellContent
ContentTemplate="{DataTemplate local:MainPage}" Title="Invité"
Route="MainPage" /> ContentTemplate="{DataTemplate local:MainPage}"
Route="MainPage" />
</Tab>
<Tab>
<ShellContent
Title="Participation"
ContentTemplate="{DataTemplate participation:Nourriture}"
Route="MainPage" />
</Tab>
<Tab>
<ShellContent
Title="Parie"
ContentTemplate="{DataTemplate pari:Parier}"
Route="MainPage" />
</Tab>
<Tab>
<ShellContent
Title="Information"
ContentTemplate="{DataTemplate info:Info}"
Route="MainPage" />
</Tab>
</TabBar> </TabBar>
</Shell> </Shell>

@ -9,7 +9,6 @@ namespace ParionsCuite.Modeles
public class Evenement public class Evenement
{ {
public string nom { get; private set; } public string nom { get; private set; }
public DateTime date { get; private set; } public DateTime date { get; private set; }
@ -21,7 +20,7 @@ namespace ParionsCuite.Modeles
public Participation participation { get; private set; } 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.nom = nom;
this.date = date; this.date = date;
@ -33,7 +32,7 @@ namespace ParionsCuite.Modeles
List<Parier> list_parie = new List<Parier>(); List<Parier> list_parie = new List<Parier>();
} }
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.nom = nom;
this.date = date; this.date = date;

@ -8,18 +8,33 @@ namespace ParionsCuite.Modeles
{ {
public class Manageur public class Manageur
{ {
public string nom { get; private set; } public List<Evenement> evenement { get; private set; }
public string prenom { get; private set; } public Manageur()
{
evenement = new List<Evenement>();
}
public List<Evenement> ev { get; private set; } public Manageur(List<Evenement> evenements)
{
evenement = evenements.ToList();
}
Manageur(string nom, string prenom) public bool Ajout_evenement(Evenement ev)
{ {
this.nom = nom; evenement.Add(ev);
this.prenom = prenom; foreach (Evenement e in evenement)
this.ev = new List<Evenement>(); {
if (e == ev)
return true;
}
return false;
} }
public bool Supprimer_evenement(Evenement ev)
{
return evenement.Remove(ev);
}
} }
} }

@ -8,7 +8,7 @@ namespace ParionsCuite.Modeles
{ {
public class Participation public class Participation
{ {
Participation() public Participation()
{ {
List<Boissons> list_boisson = new List<Boissons>(); List<Boissons> list_boisson = new List<Boissons>();
List<Autre> list_autre = new List<Autre>(); List<Autre> list_autre = new List<Autre>();

Loading…
Cancel
Save