diff --git a/Code/IHM/UCCompte.xaml b/Code/IHM/UCCompte.xaml index 875e81c..6879b17 100644 --- a/Code/IHM/UCCompte.xaml +++ b/Code/IHM/UCCompte.xaml @@ -30,7 +30,7 @@ </StackPanel> - <Button DockPanel.Dock="Bottom" Style="{StaticResource GreenButtonRessource}" Height="25" Width="170" Margin="20"> + <Button Click="Button_Click_ModifSolde" DockPanel.Dock="Bottom" Style="{StaticResource GreenButtonRessource}" Height="25" Width="170" Margin="20"> <TextBlock Text="Modifier votre solde" Style="{StaticResource TextBlockRessource}"/> </Button> <TextBlock VerticalAlignment="Center" Text=" Le solde de votre compte courant est de : ???" Style="{StaticResource TextBlockRessource}" FontSize="16" FontWeight="DemiBold"/> diff --git a/Code/IHM/UCCompte.xaml.cs b/Code/IHM/UCCompte.xaml.cs index 4c90587..6b36bb0 100644 --- a/Code/IHM/UCCompte.xaml.cs +++ b/Code/IHM/UCCompte.xaml.cs @@ -15,14 +15,18 @@ using System.Windows.Shapes; namespace IHM { - /// <summary> - /// Logique d'interaction pour UCCompte.xaml - /// </summary> + public partial class UCCompte : UserControl { + public Navigator Nav => (App.Current as App).Navigator; public UCCompte() { InitializeComponent(); } + private void Button_Click_ModifSolde(object sender, RoutedEventArgs e) + { + Nav.NavigateTo(Navigator.PART_MODIFSOLDE); + } } + } diff --git a/Code/IHM/UCModifSolde.xaml b/Code/IHM/UCModifSolde.xaml index 9089041..ea6d449 100644 --- a/Code/IHM/UCModifSolde.xaml +++ b/Code/IHM/UCModifSolde.xaml @@ -11,7 +11,7 @@ <DockPanel> <TextBlock DockPanel.Dock="Top" Style="{StaticResource TitreDePage}" >Modification de votre solde</TextBlock> - <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Margin="10"> + <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Margin="20"> <Button Style="{StaticResource GreenButtonRessource}" Height="25" Width="170"> <TextBlock Text="Retour" Style="{StaticResource TextBlockRessource}"/> </Button>