2019-01-20 11:46:45 +01:00
|
|
|
<Window x:Class="ProjetTheAlone.FicEncodePlat"
|
|
|
|
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"
|
2019-01-25 16:23:52 +01:00
|
|
|
xmlns:System="clr-namespace:System;assembly=mscorlib"
|
|
|
|
xmlns:StyleAlias="clr-namespace:ProjetTheAlone.Classes"
|
2019-01-24 22:24:05 +01:00
|
|
|
xmlns:convert="clr-namespace:ProjetTheAlone.Converter"
|
2019-01-20 11:46:45 +01:00
|
|
|
mc:Ignorable="d"
|
|
|
|
Title="Plats" Height="482.167" Width="955.5" WindowStartupLocation="CenterScreen" WindowStyle="None">
|
2019-01-24 22:24:05 +01:00
|
|
|
<Window.Resources>
|
|
|
|
<convert:BinaryImageConverter x:Key="imgConverter" />
|
|
|
|
</Window.Resources>
|
2019-01-20 11:46:45 +01:00
|
|
|
<Grid Margin="0,-3,2,2">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Content="Plats" HorizontalAlignment="Left" Margin="31,20,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
|
2019-01-24 22:24:05 +01:00
|
|
|
<Grid x:Name="UneFiche" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" Margin="515,82,139,243" >
|
2019-01-20 11:46:45 +01:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2019-01-24 22:24:05 +01:00
|
|
|
<RowDefinition Height="Auto" />
|
2019-01-20 11:46:45 +01:00
|
|
|
</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="2" Grid.Column="1" Margin="3"
|
|
|
|
Text="{Binding UnPlat.Nom, Mode=TwoWay}" />
|
|
|
|
<TextBlock x:Name="tImg" Text="Photo" Grid.Row="4" VerticalAlignment="Center" Margin="0,56,0,10" />
|
|
|
|
<DockPanel Margin="10,10,10,10" Grid.Row="4" Grid.Column="1">
|
|
|
|
<WrapPanel HorizontalAlignment="Right" DockPanel.Dock="Top" >
|
2019-01-24 22:24:05 +01:00
|
|
|
<Image x:Name="ImageFile" Source="{Binding UnPlat.Img, Mode=TwoWay, Converter={StaticResource imgConverter}}" Height="40" HorizontalAlignment="Right" VerticalAlignment="Top" Width="90"/>
|
2019-01-20 11:46:45 +01:00
|
|
|
<Button x:Name="btnOpenFile" HorizontalAlignment="Right" Click="btnOpenFile_Click" Content="Open file"/>
|
|
|
|
</WrapPanel>
|
2019-01-24 22:24:05 +01:00
|
|
|
<TextBox x:Name="txtEditor" />
|
2019-01-20 11:46:45 +01:00
|
|
|
|
|
|
|
</DockPanel>
|
2019-01-24 22:24:05 +01:00
|
|
|
<DockPanel Grid.Row="5" Grid.ColumnSpan="2">
|
2019-01-25 16:23:52 +01:00
|
|
|
<ComboBox x:Name="TypePlat" SelectionChanged="TypePlat_SelectionChanged" SelectedValue="{Binding Typeplat, Mode=TwoWay}">
|
|
|
|
|
2019-01-24 22:24:05 +01:00
|
|
|
</ComboBox>
|
|
|
|
</DockPanel>
|
2019-01-20 11:46:45 +01:00
|
|
|
</Grid>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="678,237,78,140" 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>
|
2019-01-24 22:24:05 +01:00
|
|
|
<DataGrid ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
|
2019-01-20 11:46:45 +01:00
|
|
|
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
|
2019-01-24 22:24:05 +01:00
|
|
|
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Margin="88,86,576,140" >
|
2019-01-20 11:46:45 +01:00
|
|
|
<DataGrid.Columns>
|
2019-01-24 22:24:05 +01:00
|
|
|
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
|
|
|
|
<DataGridTextColumn Header="Nom du plat" Binding="{Binding P_nom}" Width="150" />
|
|
|
|
<DataGridTextColumn Header="Type plat" Binding="{Binding ID_typePlat}" Width="*" />
|
2019-01-20 11:46:45 +01:00
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="88,331,576,46" 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="810,403,0,0" VerticalAlignment="Top" Width="92" Click="BtnQuitter_Click" Height="26"/>
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
</Window>
|