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(); } }
private void retourMain(string login) { MainWindow mainWindow = new MainWindow(login); mainWindow.Show(); this.Close(); }