ProjetThe/ProjetTheAlone/View/FicNewEquipe.xaml

54 lines
3.3 KiB
Plaintext
Raw Normal View History

2019-01-24 22:24:05 +01:00
<Window x:Class="ProjetTheAlone.View.FicNewEquipe"
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="NewLieu" Height="477.667" Width="627" WindowStartupLocation="CenterScreen" WindowStyle="None">
<Grid Margin="0,-3,2,2">
<Grid.RowDefinitions>
</Grid.RowDefinitions>
<Label Content="Equipe" HorizontalAlignment="Left" Margin="24,34,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
<Grid x:Name="UneFiche" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" Margin="384,120,31,307" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock x:Name="tNom" Text="Nom" Grid.Row="2" VerticalAlignment="Center" />
<TextBox x:Name="tbNom" Grid.Row="1" Grid.Column="1" Margin="3,3,0,22"
Text="{Binding UneEquipe.Nom, Mode=TwoWay}" HorizontalAlignment="Left" Width="163" />
</Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="396,178,31,195" Width="190">
<Button x:Name="bConfirmer" Content="Confirmer" Margin="3" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"
Command="{Binding cConfirmer}" />
<Button x:Name="bAnnuler" Content="Annuler" Margin="3,16,3,17" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"
Command="{Binding cAnnuler}" />
</StackPanel>
<DataGrid ItemsSource="{Binding BcpEquipes}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding EquipeSelectionnee, Mode=TwoWay}" Margin="118,100,283,123" >
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_equipe}" />
<DataGridTextColumn Header="Nom d'équipe" Binding="{Binding E_nom}" Width="*" />
</DataGrid.Columns>
</DataGrid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="80,344,255,29" Width="282">
<Button x:Name="bAjouter" Content="Ajouter" Margin="3" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
Command="{Binding cAjouter}" />
<Button x:Name="bModifier" Content="Modifier" Margin="3" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
Command="{Binding cModifier}" />
<Button x:Name="bSupprimer" Content="Supprimer" Margin="3" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
Command="{Binding cSupprimer}" />
</StackPanel>
<Button x:Name="BtnQuitter" Content="Quitter" HorizontalAlignment="Left" Margin="494,380,0,0" VerticalAlignment="Top" Width="92" Click="BtnQuitter_Click" Height="26"/>
</Grid>
</Window>