diff --git a/Code/IHM/App.xaml b/Code/IHM/App.xaml index 193ee2f..812fea3 100644 --- a/Code/IHM/App.xaml +++ b/Code/IHM/App.xaml @@ -6,7 +6,7 @@ StartupUri="MainWindow.xaml"> - + + + + + + + + - - - + + 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 18126b1..1292480 100644 --- a/Code/IHM/UCConnexion.xaml.cs +++ b/Code/IHM/UCConnexion.xaml.cs @@ -31,5 +31,28 @@ namespace IHM Nav.NavigateTo(Navigator.PART_CONNEXION, Navigator.PART_MAIN); } + private void Button_Click_Connection(object sender, RoutedEventArgs e) + { + 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) + { + // TO DO + } + } } diff --git a/Code/IHM/UCInscription.xaml b/Code/IHM/UCInscription.xaml index 8a31bd9..5e2f9fc 100644 --- a/Code/IHM/UCInscription.xaml +++ b/Code/IHM/UCInscription.xaml @@ -16,7 +16,7 @@ - diff --git a/Code/IHM/UCInscription.xaml.cs b/Code/IHM/UCInscription.xaml.cs index 13c4220..b7c9612 100644 --- a/Code/IHM/UCInscription.xaml.cs +++ b/Code/IHM/UCInscription.xaml.cs @@ -30,5 +30,10 @@ namespace IHM { Nav.NavigateTo(Navigator.PART_CONNEXION, Navigator.PART_MAIN); } + + private void Button_Click_Validation(object sender, RoutedEventArgs e) + { + // TO DO + } } }