Beispiel #1
0
 private void buttonConnexion_Click(object sender, RoutedEventArgs e)
 {
     if (login == "anonyme")
     {
         LoginWindow loginWindow = new LoginWindow();
         this.Close();
         loginWindow.Show();
     }
     else
     {
         MainWindow mainWindow = new MainWindow();
         this.Close();
         mainWindow.Show();
     }
 }
Beispiel #2
0
 private void retourMain(string login)
 {
     MainWindow mainWindow = new MainWindow(login);
     mainWindow.Show();
     this.Close();
 }