Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
tp2_conditionnelles [2017/10/17 07:37] ngagniarre |
tp2_conditionnelles [2017/10/17 08:11] (Version actuelle) ngagniarre [Exo 1] |
||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
* Incrémentation d'un compteur : i = i + 1 peut s'écrire plus vite i++ | * Incrémentation d'un compteur : i = i + 1 peut s'écrire plus vite i++ | ||
+ | * Interface graphique : | ||
+ | <code> | ||
+ | <Grid> | ||
+ | <Button x:Name="btnNouvGroup" Content="Nouveau groupe
" HorizontalAlignment="Left" Height="23" Margin="386,232,0,0" VerticalAlignment="Top" Width="119" RenderTransformOrigin="0.435,0.685" Click="btnNouvGroup_Click"> | ||
+ | <Button.RenderTransform> | ||
+ | <TransformGroup> | ||
+ | <ScaleTransform/> | ||
+ | <SkewTransform AngleX="-0.221"/> | ||
+ | <RotateTransform Angle="-0.271"/> | ||
+ | <TranslateTransform X="0.914" Y="0.034"/> | ||
+ | </TransformGroup> | ||
+ | </Button.RenderTransform> | ||
+ | </Button> | ||
+ | <Button x:Name="btnValider" Content="Valider" HorizontalAlignment="Left" Height="35" Margin="386,265,0,0" VerticalAlignment="Top" Width="121" Click="btnValider_Click"/> | ||
+ | <TextBox x:Name="txtTarif" HorizontalAlignment="Left" Height="21" Margin="162,63,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="72" TextChanged="textBox_TextChanged"/> | ||
+ | <TextBox x:Name="txtAge" HorizontalAlignment="Left" Height="17" Margin="152,152,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="45"/> | ||
+ | <Label x:Name="label" Content="Age personne:" HorizontalAlignment="Left" Height="46" Margin="61,146,0,0" VerticalAlignment="Top" Width="94"/> | ||
+ | <Label x:Name="label1" Content="Nombre de personnes:" HorizontalAlignment="Left" Height="29" Margin="58,230,0,0" VerticalAlignment="Top" Width="139"/> | ||
+ | <Label x:Name="label2" Content="Montant total à régler:" HorizontalAlignment="Left" Height="36" Margin="58,264,0,0" VerticalAlignment="Top" Width="152"/> | ||
+ | <Label x:Name="lblMontantTotal" Content="" HorizontalAlignment="Left" Height="32" Margin="200,263,0,0" VerticalAlignment="Top" Width="109" RenderTransformOrigin="0.5,0.5"> | ||
+ | <Label.RenderTransform> | ||
+ | <TransformGroup> | ||
+ | <ScaleTransform/> | ||
+ | <SkewTransform/> | ||
+ | <RotateTransform Angle="-0.366"/> | ||
+ | <TranslateTransform/> | ||
+ | </TransformGroup> | ||
+ | </Label.RenderTransform> | ||
+ | </Label> | ||
+ | <Label x:Name="label3" Content="Tarif de base du voyage:" HorizontalAlignment="Left" Height="43" Margin="17,60,0,0" VerticalAlignment="Top" Width="147"/> | ||
+ | <Label x:Name="label4" Content="Euros" HorizontalAlignment="Left" Height="43" Margin="239,61,0,0" VerticalAlignment="Top" Width="71"/> | ||
+ | <Label x:Name="lblNbPers" Content="" HorizontalAlignment="Left" Height="26" Margin="197,233,0,0" VerticalAlignment="Top" Width="32" RenderTransformOrigin="0.389,0.597"/> | ||
+ | |||
+ | </Grid> | ||
+ | </code> | ||
===== Exo 2 ===== | ===== Exo 2 ===== |