add files
This commit is contained in:
parent
dc46e7a99c
commit
abc3480b88
|
@ -0,0 +1,29 @@
|
||||||
|
<Window x:Class="ProjetTheAlone.View.Accueil"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:ProjetTheAlone.View"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="Accueil" Height="376.232" Width="816.438" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||||
|
|
||||||
|
<Grid Margin="0,0,0,10">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="400"/>
|
||||||
|
<ColumnDefinition Width="400"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="50"/>
|
||||||
|
<RowDefinition Height="250"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Button Name="BtnDashbord" Content="Dashbord" HorizontalAlignment="Left" Margin="23,28,0,0" VerticalAlignment="Top" Width="348" Height="203" Grid.Column="0" Grid.Row="1" Click="BtnAffichage_Click"/>
|
||||||
|
<Button Name="BtnEncodage" Content="Encodage" HorizontalAlignment="Left" Margin="43,28,0,0" VerticalAlignment="Top" Width="348" Height="203" Grid.Column="1" Grid.Row="1" Click="BtnEncodage_Click" />
|
||||||
|
<Button x:Name="BtnQuitter" Content="Quitter" HorizontalAlignment="Left" Margin="300,10,0,0" VerticalAlignment="Top" Width="81" Grid.Column="1" Grid.Row="2" Click="BtnQuitter_Click"/>
|
||||||
|
<Label Content="Bienvenue sur TheApp" HorizontalAlignment="Left" Margin="62,10,0,0" Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.View
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Logique d'interaction pour Accueil.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class Accueil : Window
|
||||||
|
{
|
||||||
|
public Accueil()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
private static bool openaffichage = false;
|
||||||
|
private static bool openencodage = false;
|
||||||
|
|
||||||
|
public static bool Openaffichage { get => openaffichage; set => openaffichage = value; }
|
||||||
|
public static bool Openencodage { get => openencodage; set => openencodage = value; }
|
||||||
|
|
||||||
|
private void BtnAffichage_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!Openaffichage)
|
||||||
|
{
|
||||||
|
Openaffichage = true;
|
||||||
|
DashBoard w = new DashBoard();
|
||||||
|
w.Show();
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("Fenêtre d'affichage déjà ouverte.", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BtnEncodage_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
if (!Openencodage)
|
||||||
|
{
|
||||||
|
Openencodage = true;
|
||||||
|
FicEncodage w = new FicEncodage();
|
||||||
|
w.Show();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MessageBox.Show("Fenêtre d'encodage déjà ouverte.", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void BtnQuitter_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,62 @@
|
||||||
|
<Window x:Class="ProjetTheAlone.View.FicBeneficiaireEncode"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:ProjetTheAlone.View"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="Bénéficiaire" Height="300" Width="300" WindowStartupLocation="CenterScreen">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="*" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Name="UneFiche" IsEnabled="{Binding Path=ActiverUneFiche, Mode=OneWay}" >
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Name="tPre" Text="Prénom" Grid.Row="1" VerticalAlignment="Center" />
|
||||||
|
<TextBox Name="tbPre" Grid.Row="1" Grid.Column="1" Margin="3"
|
||||||
|
Text="{Binding Path=UnePersonne.Pre, Mode=TwoWay}" />
|
||||||
|
<TextBlock Name="tNom" Text="Nom" Grid.Row="2" VerticalAlignment="Center" />
|
||||||
|
<TextBox Name="tbNom" Grid.Row="2" Grid.Column="1" Margin="3"
|
||||||
|
Text="{Binding Path=UnePersonne.Nom, Mode=TwoWay}" />
|
||||||
|
<TextBlock Name="tNai" Text="Date Naissance" Grid.Row="3" VerticalAlignment="Center" />
|
||||||
|
<DatePicker Name="dpNai" Grid.Row="3" Grid.Column="1" Margin="3"
|
||||||
|
Text="{Binding Path=UnePersonne.Nai, Mode=TwoWay}"
|
||||||
|
DisplayDate="{Binding Path=UnePersonne.Nai, Mode=TwoWay}" />
|
||||||
|
</Grid>
|
||||||
|
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
|
||||||
|
<Button Name="bConfirmer" Content="Confirmer" Margin="3" IsEnabled="{Binding Path=ActiverUneFiche, Mode=OneWay}"
|
||||||
|
Command="{Binding cConfirmer}" />
|
||||||
|
<Button Name="bAnnuler" Content="Annuler" Margin="3" IsEnabled="{Binding Path=ActiverUneFiche, Mode=OneWay}"
|
||||||
|
Command="{Binding cAnnuler}" />
|
||||||
|
</StackPanel>
|
||||||
|
<DataGrid ItemsSource="{Binding Path=BcpPersonnes}" Grid.Row="2" VerticalScrollBarVisibility="Visible"
|
||||||
|
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding Path=ActiverBcpFiche, Mode=OneWay}"
|
||||||
|
SelectedItem="{Binding PersonneSelectionnee, Mode=TwoWay}" >
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTextColumn Visibility="Hidden" Binding="{Binding Path=ID}" />
|
||||||
|
<DataGridTextColumn Header="Prénom" Binding="{Binding Path=Pre}" Width="*" />
|
||||||
|
<DataGridTextColumn Header="Nom" Binding="{Binding Path=Nom}" Width="*" />
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
<StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Center">
|
||||||
|
<Button Name="bAjouter" Content="Ajouter" Margin="3" IsEnabled="{Binding Path=ActiverBcpFiche, Mode=OneWay}"
|
||||||
|
Command="{Binding cAjouter}" />
|
||||||
|
<Button Name="bModifier" Content="Modifier" Margin="3" IsEnabled="{Binding Path=ActiverBcpFiche, Mode=OneWay}"
|
||||||
|
Command="{Binding cModifier}" />
|
||||||
|
<Button Name="bSupprimer" Content="Supprimer" Margin="3" IsEnabled="{Binding Path=ActiverBcpFiche, Mode=OneWay}"
|
||||||
|
Command="{Binding cSupprimer}" />
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
|
@ -0,0 +1,27 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.View
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Logique d'interaction pour FicBeneficiaireEncode.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class FicBeneficiaireEncode : Window
|
||||||
|
{
|
||||||
|
public FicBeneficiaireEncode()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
<Window x:Class="ProjetTheAlone.View.FicEncodage"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:ProjetTheAlone.View"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="FicEncodage" Height="376.232" Width="816.438" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||||
|
<Grid Margin="0,0,0,10">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="270"/>
|
||||||
|
<ColumnDefinition Width="270"/>
|
||||||
|
<ColumnDefinition Width="*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="50"/>
|
||||||
|
<RowDefinition Height="250"/>
|
||||||
|
<RowDefinition Height="*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Button Name="BtnQuitter" Content="Quitter" HorizontalAlignment="Left" Margin="136,10,0,0" VerticalAlignment="Top" Width="93" Click="BtnQuitter_Click" Height="26" Grid.Column="2" Grid.Row="2"/>
|
||||||
|
<Button Content="Evènements" HorizontalAlignment="Left" Margin="33,31,0,0" Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" Width="212" Height="185" Click="Button_Evénement"/>
|
||||||
|
<Button Content="Bénéficiaire" HorizontalAlignment="Left" Margin="33,31,0,0" Grid.Column="0" Grid.Row="1" VerticalAlignment="Top" Width="212" Height="185" Click="Button_Bénéficiaire" />
|
||||||
|
<Button Content="Repas" HorizontalAlignment="Left" Margin="33,31,0,0" VerticalAlignment="Top" Width="212" Height="185" Grid.Column="2" Grid.Row="1" Click="Button_Repas"/>
|
||||||
|
<Label Content="Encodage" HorizontalAlignment="Left" Margin="29,10,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
</Window>
|
|
@ -0,0 +1,51 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.View
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Logique d'interaction pour FicEncodage.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class FicEncodage : Window
|
||||||
|
{
|
||||||
|
public FicEncodage()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
private void BtnQuitter_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
Accueil.Openencodage = false;
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Repas(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
FicRepasEncode w = new FicRepasEncode();
|
||||||
|
w.ShowDialog();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Evénement(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
FicEvenementEncode w = new FicEvenementEncode();
|
||||||
|
w.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Bénéficiaire(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
FicBeneficiaireEncode w = new FicBeneficiaireEncode();
|
||||||
|
w.ShowDialog();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,122 @@
|
||||||
|
<Window x:Class="ProjetTheAlone.View.FicEvenementEncode"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:ProjetTheAlone.View"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="FicEvenementEncode" Height="491.666" Width="1137.834" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||||
|
<Grid Margin="0,0,2,2">
|
||||||
|
<ListView x:Name="lvEvenementtype" Margin="281,50,682,257">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="160" Header="Type d'évenement"
|
||||||
|
DisplayMemberBinding ="{Binding Pre}"/>
|
||||||
|
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<ListView x:Name="lvLieu" Margin="480,95,523,266">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="120" Header="Lieu"
|
||||||
|
DisplayMemberBinding ="{Binding Pre}"/>
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<ListView x:Name="lvParticipantEvenement" Margin="431,258,520,103">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="190" Header="Participant à l'événement "/>
|
||||||
|
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<ListView x:Name="lvParticipantEquipe" Margin="951,258,20,62">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="170" Header="Participants à l'équipe "/>
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<ListView x:Name="lvEquipes" Margin="819,258,182,62">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="120" Header="Equipes"/>
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<ListView x:Name="lvBénéficiaire" Margin="233,258,730,103">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="180" Header="Bénéficiaire"/>
|
||||||
|
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<Button x:Name="btnBeneficiaire" Margin="233,405,713,28"
|
||||||
|
Content="Nouveau bénéficiaire" Click="btnBénéficiaire_Click" Height="Auto"/>
|
||||||
|
<Button x:Name="btnCreeEvent" Margin="802,44,168,396"
|
||||||
|
Content="Créé l'événement" RenderTransformOrigin="0.017,0.519" Height="Auto">
|
||||||
|
<Button.RenderTransform>
|
||||||
|
<TransformGroup>
|
||||||
|
<ScaleTransform/>
|
||||||
|
<SkewTransform AngleY="0.047"/>
|
||||||
|
<RotateTransform Angle="0.162"/>
|
||||||
|
<TranslateTransform/>
|
||||||
|
</TransformGroup>
|
||||||
|
</Button.RenderTransform>
|
||||||
|
</Button>
|
||||||
|
<DatePicker HorizontalAlignment="Left" Margin="491,61,0,0" VerticalAlignment="Top"/>
|
||||||
|
<TextBox HorizontalAlignment="Left" Height="125" Margin="635,91,0,0" TextWrapping="Wrap" Text="Description de L'événement" VerticalAlignment="Top" Width="271"/>
|
||||||
|
<TextBox HorizontalAlignment="Left" Height="29" Margin="635,50,0,0" TextWrapping="Wrap" Text="Duréé : ex. 2h30" VerticalAlignment="Top" Width="109"/>
|
||||||
|
<Button x:Name="btnParticipant" Margin="431,405,507,28" Content="Ajouter un participant" Height="Auto" />
|
||||||
|
<Button x:Name="btnNewTypeEvent" Margin="40,57,868,380"
|
||||||
|
Content="Nouveau type d'événement" RenderTransformOrigin="0.017,0.519" Height="Auto" Click="btnNewTypeEvent_Click">
|
||||||
|
<Button.RenderTransform>
|
||||||
|
<TransformGroup>
|
||||||
|
<ScaleTransform/>
|
||||||
|
<SkewTransform AngleY="0.047"/>
|
||||||
|
<RotateTransform Angle="0.162"/>
|
||||||
|
<TranslateTransform/>
|
||||||
|
</TransformGroup>
|
||||||
|
</Button.RenderTransform>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="btnNewLieu" Margin="40,117,869,323"
|
||||||
|
Content="Nouveau lieu" RenderTransformOrigin="0.017,0.519" Height="Auto" Click="btnNewLieu_Click">
|
||||||
|
<Button.RenderTransform>
|
||||||
|
<TransformGroup>
|
||||||
|
<ScaleTransform/>
|
||||||
|
<SkewTransform AngleY="0.661"/>
|
||||||
|
<RotateTransform Angle="0.162"/>
|
||||||
|
<TranslateTransform Y="0.031"/>
|
||||||
|
</TransformGroup>
|
||||||
|
</Button.RenderTransform>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="btnAjoutEquipe" Margin="635,258,314,184" Content="Ajouter une Equipe" Height="Auto" />
|
||||||
|
<Button x:Name="btnSuppEquipe" Margin="635,303,314,139" Content="Supprimer une Equipe" Height="Auto" />
|
||||||
|
<Button x:Name="btnAjoutEquipier" Margin="635,348,314,97" Content="Ajouter un joueur" Height="Auto" />
|
||||||
|
<Button x:Name="btnSuppEquipier" Margin="635,390,314,47" Content="Supprimer un joueur" Height="Auto" />
|
||||||
|
<ListView x:Name="lvEvenementEnCours" Margin="29,260,930,60">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="160" Header="Evénement en cours"/>
|
||||||
|
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<Label Content="Evénements" HorizontalAlignment="Left" Margin="29,10,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
|
||||||
|
<Button x:Name="btnQuitter" Margin="971,181,30,260"
|
||||||
|
Content="Quitter" RenderTransformOrigin="0.017,0.519" Click="btnQuitter_Click" Height="Auto">
|
||||||
|
<Button.RenderTransform>
|
||||||
|
<TransformGroup>
|
||||||
|
<ScaleTransform/>
|
||||||
|
<SkewTransform AngleY="0.047"/>
|
||||||
|
<RotateTransform Angle="0.162"/>
|
||||||
|
<TranslateTransform/>
|
||||||
|
</TransformGroup>
|
||||||
|
</Button.RenderTransform>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.View
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Logique d'interaction pour FicEvenementEncode.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class FicEvenementEncode : Window
|
||||||
|
{
|
||||||
|
public FicEvenementEncode()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnBénéficiaire_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
FicBeneficiaireEncode w = new FicBeneficiaireEncode();
|
||||||
|
w.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnQuitter_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnNewTypeEvent_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnNewLieu_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
<Window x:Class="ProjetTheAlone.View.FicRepasEncode"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:ProjetTheAlone.View"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="FicRepas" Height="491.666" Width="1137.834" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
||||||
|
<Grid>
|
||||||
|
<Button x:Name="btnQuitter" Margin="974,427,29,26"
|
||||||
|
Content="Quitter" RenderTransformOrigin="0.017,0.519" Click="btnQuitter_Click">
|
||||||
|
<Button.RenderTransform>
|
||||||
|
<TransformGroup>
|
||||||
|
<ScaleTransform/>
|
||||||
|
<SkewTransform AngleY="0.047"/>
|
||||||
|
<RotateTransform Angle="0.162"/>
|
||||||
|
<TranslateTransform/>
|
||||||
|
</TransformGroup>
|
||||||
|
</Button.RenderTransform>
|
||||||
|
</Button>
|
||||||
|
<Calendar HorizontalAlignment="Left" Margin="32,16,0,0" VerticalAlignment="Top"/>
|
||||||
|
<ListView x:Name="lvPlat" Margin="334,39,627,283">
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
<GridViewColumn Width="160" Header="Plats"/>
|
||||||
|
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
|
@ -0,0 +1,32 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.View
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Logique d'interaction pour FicRepasEncode.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class FicRepasEncode : Window
|
||||||
|
{
|
||||||
|
public FicRepasEncode()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnQuitter_Click(object sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.ViewModel
|
||||||
|
{
|
||||||
|
class EvenementEncode
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.Model
|
||||||
|
{
|
||||||
|
public class EventPasseModel : INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
ObservableCollection<string> classement;
|
||||||
|
|
||||||
|
public ObservableCollection<string> Classement { get => classement; set { classement = value; OnPropertyChanged("Classement"); } }
|
||||||
|
|
||||||
|
public EventPasseModel(ObservableCollection<string> classement)
|
||||||
|
{
|
||||||
|
Classement = classement;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void OnPropertyChanged(string name)
|
||||||
|
{
|
||||||
|
PropertyChangedEventHandler handler = PropertyChanged;
|
||||||
|
if (handler != null)
|
||||||
|
{
|
||||||
|
handler(this, new PropertyChangedEventArgs(name));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using ProjetTheAlone.Classes;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
|
||||||
|
namespace ProjetTheAlone.ViewModel
|
||||||
|
{
|
||||||
|
public class RepaModel : INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
|
||||||
|
private string quand;
|
||||||
|
private ObservableCollection<C_T_plat> listPlat = new ObservableCollection<C_T_plat>();
|
||||||
|
|
||||||
|
public ObservableCollection<C_T_plat> ListPlat { get => listPlat; set { listPlat = value; OnPropertyChanged("ListPlat"); OnPropertyChanged("Plat1"); OnPropertyChanged("Plat2"); OnPropertyChanged("Plat3"); } }
|
||||||
|
public C_T_plat Plat1 { get => ListPlat[0]; }
|
||||||
|
public C_T_plat Plat2 { get => ListPlat[1]; }
|
||||||
|
public C_T_plat Plat3 { get => ListPlat[2]; }
|
||||||
|
public string Quand { get => quand; set { quand = value; OnPropertyChanged("Quand"); } }
|
||||||
|
|
||||||
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
protected void OnPropertyChanged(string name)
|
||||||
|
{
|
||||||
|
PropertyChangedEventHandler handler = PropertyChanged;
|
||||||
|
if (handler != null)
|
||||||
|
{
|
||||||
|
handler(this, new PropertyChangedEventArgs(name));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public RepaModel()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
public RepaModel(ObservableCollection<C_T_plat> ListPlat, string quand)
|
||||||
|
{
|
||||||
|
this.ListPlat = ListPlat;
|
||||||
|
this.Quand = quand;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue