예제 #1
0
 private void Button_Click_Valider(object sender, RoutedEventArgs e)
 {
     if (Manager.verifierMotDePasse(password.Password))
     {
         SubscribeWindow subWindow = new SubscribeWindow(2);
         subWindow.ProfilUpdated += OnProfilUpdated;
         subWindow.Show();
     }
     else
     {
         MessageBox.Show("Mot de passe incorrect", "Attention", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
     Close();
 }
예제 #2
0
        private void Button_Click_Subscribe(object sender, RoutedEventArgs e)
        {
            SubscribeWindow subWind = new SubscribeWindow(1);

            subWind.Show();
        }