You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
5.3 KiB
126 lines
5.3 KiB
<Window x:Class="vues.FormulaireLangage"
|
|
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:vues"
|
|
mc:Ignorable="d"
|
|
Title="Nouveau Langage" Height="450" Width="800">
|
|
<Window.Resources>
|
|
<!--ce style s'applique aux textbox de la page-->
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="MinWidth" Value="100"/>
|
|
<Setter Property="Margin" Value="10, 0"/>
|
|
</Style>
|
|
|
|
<!--ce style s'applique au stackpanel de la plage-->
|
|
<Style TargetType="StackPanel">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
|
|
<Style TargetType="ListBox">
|
|
<Setter Property="Height" Value="25"/>
|
|
<Setter Property="Margin" Value="10,0"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<!--
|
|
ce dockpanel regroupe trois éléments; deux grids, et un wrappanel
|
|
la premiere grid est en haut du dockpanel, le wrappanel est en bas du dockpanel, ainsi le reste de la place
|
|
est pour la seconde grid
|
|
-->
|
|
<DockPanel>
|
|
|
|
<!--ce wrappanel regroupe le bouton annuler et ok-->
|
|
<WrapPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom" HorizontalAlignment="Right">
|
|
<Button Content="Annuler" Click="Quit_Click" Style="{StaticResource BoutonAnnulerOk}"/>
|
|
<Button Content="OK" Style="{StaticResource BoutonAnnulerOk}" Click="ValiderNouveauLangage_Click"/>
|
|
</WrapPanel>
|
|
|
|
<Grid DockPanel.Dock="Top">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- tritre + trait separateur -->
|
|
<Border Grid.Column="1" BorderBrush="orange" BorderThickness="0,0,0,3"
|
|
VerticalAlignment="Center" Padding="0,0,0,8">
|
|
<TextBlock HorizontalAlignment="Center"
|
|
Text="Langage" FontSize="22"/>
|
|
</Border>
|
|
</Grid>
|
|
<!--
|
|
cette gride se compose en 4 lignes et 3 colonnes ; une case contient un wrappanel, pour le bouton
|
|
browefile, les autres contiennent des stackpanel avec des label et des textbox ou listbox, pour saisir/
|
|
selectionner les informations du langages
|
|
-->
|
|
<Grid Margin="0,20,0,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<StackPanel>
|
|
<Label>Nom du Langage</Label>
|
|
<TextBox x:Name="Nom" Text="{Binding Nom}"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="1">
|
|
<Label>Date de création du langage (aaaa)</Label>
|
|
<TextBox x:Name="Date" Text="{Binding DateDuLangage.Year, Mode=OneWay}"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="2">
|
|
<Label>Auteurs (auteur1, auteur2...)</Label>
|
|
<TextBox x:Name="auteurs" Text="{Binding Path=LesAuteurs}" MinWidth="25"/>
|
|
</StackPanel>
|
|
|
|
<WrapPanel Grid.Row="1" VerticalAlignment="Center">
|
|
<Label>Logo</Label>
|
|
<Button Content="Parcourir..." Click="BrowseFile_Click"/>
|
|
<Image x:Name="Logo"/>
|
|
</WrapPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="1">
|
|
<Label>Paradigmes(parag1, parag2)</Label>
|
|
<TextBox x:Name="Paradigmes" Text="{Binding Path=LesParadigmes}" MinWidth="25"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="1" Grid.Column="2">
|
|
<Label>Documentation</Label>
|
|
<TextBox x:Name="Doc" Text="{Binding Documentation}"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2">
|
|
<Label>Hello World</Label>
|
|
<TextBox x:Name="Exe" AcceptsReturn="True" Text="{Binding ExempleDeCode}"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="1">
|
|
<Label>Logiciel connus(logiciel 1, logiciel 2)</Label>
|
|
<TextBox x:Name="Logiciel" Text="{Binding LogicielsConus}" MinWidth="25"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="2" Grid.Column="2">
|
|
<Label>Utilité</Label>
|
|
<TextBox x:Name="Utilité" Text="{Binding UtilitéDuLangage}"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="3">
|
|
<Label>Géneration (>0)</Label>
|
|
<TextBox x:Name="Gen" Text="{Binding Generation}"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
</DockPanel>
|
|
</Window>
|