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>
<Tab>
<ShellContent <ShellContent
Title="Home" Title="Invité"
ContentTemplate="{DataTemplate local:MainPage}" ContentTemplate="{DataTemplate local:MainPage}"
Route="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>

@ -10,7 +10,6 @@ namespace ParionsCuite.Modeles
{ {
public string nom { get; private set; } public string nom { get; private set; }
public DateTime date { get; private set; } public DateTime date { get; private set; }
public string lieu { get; private set; } public string lieu { 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,17 +8,32 @@ 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 Manageur(List<Evenement> evenements)
{
evenement = evenements.ToList();
}
public List<Evenement> ev { get; private set; } public bool Ajout_evenement(Evenement ev)
{
evenement.Add(ev);
foreach (Evenement e in evenement)
{
if (e == ev)
return true;
}
return false;
}
Manageur(string nom, string prenom) public bool Supprimer_evenement(Evenement ev)
{ {
this.nom = nom; return evenement.Remove(ev);
this.prenom = prenom;
this.ev = new List<Evenement>();
} }
} }

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