From 7708c9327adac9cd612f06c13cb18e76399a553a Mon Sep 17 00:00:00 2001 From: Raphael LACOTE Date: Wed, 12 Oct 2022 15:51:15 +0200 Subject: [PATCH 1/4] =?UTF-8?q?D=C3=A9but=20de=20cr=C3=A9ation=20de=20la?= =?UTF-8?q?=20userControl=20de=20style=20et=20ajout=20de=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/IHM/App.xaml | 13 +++++++++++++ Code/IHM/UCCompte.xaml | 18 ++++++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/Code/IHM/App.xaml b/Code/IHM/App.xaml index 1f1d72d..3e12b86 100644 --- a/Code/IHM/App.xaml +++ b/Code/IHM/App.xaml @@ -72,6 +72,19 @@ + + + + + - - - + + Veuillez renseigner votre nom d'utilisateurs + + + + + + + + + Mot de passe - - - - - - - + + + Veuillez renseigner votre mot de passe + + + + + + + + + + diff --git a/Code/IHM/UCConnexion.xaml.cs b/Code/IHM/UCConnexion.xaml.cs index 1ad5266..1292480 100644 --- a/Code/IHM/UCConnexion.xaml.cs +++ b/Code/IHM/UCConnexion.xaml.cs @@ -33,7 +33,20 @@ namespace IHM private void Button_Click_Connection(object sender, RoutedEventArgs e) { - // TO DO + ErrorPassword.Visibility = Visibility.Hidden; + Password.Background = new SolidColorBrush(Colors.White); + ErrorUserName.Visibility = Visibility.Hidden; + UserName.Background = new SolidColorBrush(Colors.White); + if (UserName.Text.ToString() == "") + { + ErrorUserName.Visibility = Visibility.Visible; + UserName.Background = new BrushConverter().ConvertFromString("#FF6347") as SolidColorBrush; + } + if (Password.Password.ToString() == "") + { + ErrorPassword.Visibility = Visibility.Visible; + Password.Background = new BrushConverter().ConvertFromString("#FF6347") as SolidColorBrush; + } } private void Button_Click_Forget_Password(object sender, RoutedEventArgs e) From d0d8597163a6bf2888d9bc413446fc0b0e3e3e71 Mon Sep 17 00:00:00 2001 From: Raphael LACOTE Date: Wed, 12 Oct 2022 17:13:51 +0200 Subject: [PATCH 4/4] =?UTF-8?q?Cr=C3=A9ation=20de=20l'UC=20Compte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/IHM/App.xaml | 30 +++++++++++++++++++----------- Code/IHM/UCCompte.xaml | 11 +++++++---- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/Code/IHM/App.xaml b/Code/IHM/App.xaml index 3e12b86..42ac6f3 100644 --- a/Code/IHM/App.xaml +++ b/Code/IHM/App.xaml @@ -6,7 +6,7 @@ StartupUri="MainWindow.xaml"> - + + + + + - -