ProjetThe/ProjetTheAlone/View/FicDetailEvent.xaml

51 lines
3.9 KiB
XML

<Window x:Class="ProjetTheAlone.View.FicDetailEvent"
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"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
mc:Ignorable="d"
Title="FicDetailEvent" Height="517.897" Width="638.259" WindowStartupLocation="CenterScreen" WindowStyle="None">
<Grid Margin="0,0,2,2">
<Label Content="Détails" HorizontalAlignment="Left" Margin="24,15,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20" Width="74" Height="34"/>
<Button x:Name="btnQuitter"
Content="Quitter" Click="btnQuitter_Click" Height="41" Margin="485,442,37,25" RenderTransformOrigin="1.189,1.927"/>
<Grid HorizontalAlignment="Left" Height="237" Margin="90,54,0,0" VerticalAlignment="Top" Width="450">
<Label Content="Type d'événement" HorizontalAlignment="Left" Width="120" Margin="0,0,0,202"/>
<TextBox x:Name="tbTypeEvent" HorizontalAlignment="Left" Height="34" TextWrapping="Wrap" Text="{Binding TypeEvent}" VerticalAlignment="Top" Width="331" Margin="120,0,0,0" />
<Label Content="Lieu" HorizontalAlignment="Left" Width="120" Margin="0,34,0,167"/>
<TextBox x:Name="tbLieu" HorizontalAlignment="Left" Height="34" TextWrapping="Wrap" Text="{Binding Lieu}" VerticalAlignment="Top" Width="331" Margin="120,34,0,0"/>
<Label Content="Date" HorizontalAlignment="Left" Width="120" Margin="0,73,0,128"/>
<TextBox x:Name="tbDate" HorizontalAlignment="Left" Height="34" TextWrapping="Wrap" Text="{Binding UnDetailEvent.Date}" VerticalAlignment="Top" Width="331" Margin="120,73,0,0" />
<Label Content="Durée" HorizontalAlignment="Left" Width="120" Margin="0,112,0,91"/>
<TextBox x:Name="tbDuree" HorizontalAlignment="Left" Height="34" TextWrapping="Wrap" Text="{Binding Duree}" VerticalAlignment="Top" Width="331" Margin="120,112,0,0"/>
<Label Content="Description" HorizontalAlignment="Left" Width="120" Margin="0,151,0,53"/>
<TextBox x:Name="tbDescription" HorizontalAlignment="Left" Height="34" TextWrapping="Wrap" Text="{Binding UnDetailEvent.Description}" VerticalAlignment="Top" Width="331" Margin="120,146,0,0"/>
</Grid>
<Button x:Name="btnClassement" Margin="468,310,24,150" Content="Classement" Height="Auto" RenderTransformOrigin="-0.1,0.534" Click="btnClassement_Click" />
<DataGrid x:Name="dgEquipes" ItemsSource="{Binding BcpEquipes}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False"
SelectedItem="{Binding EquipeSelectionnee, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="40,297,402,25" >
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_equipe}" />
<DataGridTextColumn Header="Nom d'équipe" Binding="{Binding E_nom}" Width="*" />
</DataGrid.Columns>
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction Command="{Binding cAfficherJoueur}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</DataGrid>
<DataGrid x:Name="dgJoueur" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" Margin="270,297,194,25" ItemsSource="{Binding BcpJoueurs}">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_LP}" />
<DataGridTextColumn Header="ID du Joueur" Binding="{Binding ID_benificiaire}" Width="*" />
</DataGrid.Columns>
</DataGrid>
</Grid>
</Window>