ProjetThe/ProjetTheAlone/View/FicEvenementEncode.xaml

135 lines
8.6 KiB
XML

<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="552.418" Width="1221.191" WindowStartupLocation="CenterScreen" WindowStyle="None">
<Grid Margin="0,0,2,2">
<DataGrid x:Name="dgEvenementtype" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" ItemsSource="{Binding BcpTypeEvents}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" Margin="281,42,765,325" SelectedItem="{Binding TypeEventSelectionnee, Mode=TwoWay}" Grid.Column="0" SelectedIndex="{Binding UnEvent.ID_TypeEvent, Mode=TwoWay}">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_typeEvenement}" />
<DataGridTextColumn Header="Type d'événement" Binding="{Binding TE_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid x:Name="dgLieu" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" ItemsSource="{Binding BcpLieux}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" SelectedItem="{Binding LieuSelectionnee, Mode=TwoWay}" Margin="480,95,606,317">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_lieu}" />
<DataGridTextColumn Header="Type de Lieu" Binding="{Binding L_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid x:Name="dgJoueur" ItemsSource="{Binding BcpJoueurs}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" SelectedItem="{Binding JoueurSelectionnee, Mode=TwoWay}"
Margin="984,284,63,23">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_LP}" />
<DataGridTextColumn Header="ID du Joueur" Binding="{Binding ID_benificiaire}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid x:Name="dgEquipes" ItemsSource="{Binding BcpEquipes}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False"
SelectedItem="{Binding EquipeSelectionnee, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="744,284,281,23" >
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_equipe}" />
<DataGridTextColumn Header="Nom d'équipe" Binding="{Binding E_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<DataGrid x:Name="dgParticipant" ItemsSource="{Binding BcpParticipants}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False"
SelectedItem="{Binding ParticipantSelectionnee, Mode=TwoWay}" Margin="310,284,693,23" >
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_beneficiaire}" />
<DataGridTextColumn Header="Bénéficiaire" Binding="{Binding B_prenom}" Width="100" />
<DataGridTextColumn Binding="{Binding B_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<Button x:Name="btnCreeEvent" Margin="778,43,275,457"
Content="Créé l'événement" RenderTransformOrigin="0.017,0.519" Height="Auto" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"
Command="{Binding cConfirmer}">
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform AngleY="0.047"/>
<RotateTransform Angle="0.162"/>
<TranslateTransform/>
</TransformGroup>
</Button.RenderTransform>
</Button>
<DatePicker HorizontalAlignment="Left" SelectedDate="{Binding UnEvent.Date, Mode=TwoWay}" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" Margin="480,54,0,0" VerticalAlignment="Top" Width="111"/>
<TextBox HorizontalAlignment="Left" Height="76" Margin="635,140,0,0" TextWrapping="Wrap" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" Text="{Binding UnEvent.Description, Mode=TwoWay}" VerticalAlignment="Top" Width="271"/>
<Button x:Name="btnNewTypeEvent" Margin="40,47,951,450"
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,99,952,401"
Content="Nouveau lieu" RenderTransformOrigin="0.017,0.519" Height="Auto" Click="btnNewLieu_Click"/>
<Button x:Name="btnAjoutEquipe" Margin="538,292,493,210" Content="Ajouter une Equipe" Height="Auto" Click="btnAjoutEquipe_Click" />
<Button x:Name="btnAjoutEquipier" Margin="538,357,493,148" Content="Ajouter un joueur" Height="Auto" Command="{Binding cAjouterJoueur}"/>
<Button x:Name="btnSuppEquipier" Margin="538,399,493,98" Content="Supprimer un joueur" Height="Auto" Command="{Binding cSupprimerJoueur}" />
<DataGrid x:Name="lvEvenementEnCours" ItemsSource="{Binding BcpEvents}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False"
SelectedItem="{Binding EventSelectionnee, Mode=TwoWay}" Margin="29,263,955,131" >
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_event}" />
<DataGridTextColumn Header="Evénements" Binding="{Binding E_description}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<Label Content="Evénements" HorizontalAlignment="Left" Margin="29,10,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
<Button x:Name="btnQuitter" Margin="990,177,93,324"
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>
<Button x:Name="btnSuppEvent" Margin="29,424,955,73" Command="{Binding cSupprimer}"
Content="Supprimer l'événement" Height="Auto"/>
<Button x:Name="btnDetail" Margin="29,216,1073,284"
Content="Détail" Height="Auto" RenderTransformOrigin="0.523,1.512" Click="btnDetail_Click"/>
<Button x:Name="btnNewEvent" Margin="39,148,953,352"
Content="Nouvel événement" RenderTransformOrigin="0.017,0.519" Height="Auto" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
Command="{Binding cAjouter}" >
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform AngleY="0.661"/>
<RotateTransform Angle="0.162"/>
<TranslateTransform Y="0.031"/>
</TransformGroup>
</Button.RenderTransform>
</Button>
<Button x:Name="btnAnnuler" Margin="779,92,274,409"
Content="Annuler" RenderTransformOrigin="0.017,0.519" Height="Auto" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"
Command="{Binding cAnnuler}">
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform AngleY="0.047"/>
<RotateTransform Angle="0.162"/>
<TranslateTransform/>
</TransformGroup>
</Button.RenderTransform>
</Button>
<DatePicker HorizontalAlignment="Left" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" SelectedDate="{Binding UnEvent.Duree, Mode=TwoWay}" Margin="635,54,0,0" VerticalAlignment="Top" Width="111"/>
<Button x:Name="btnAjouterEquipe" Margin="29,474,955,23" Command="{Binding cAjouterEquipe}"
Content="Ajouter Equipe à l'événement" Height="Auto"/>
</Grid>
</Window>