private void OpenAndFillInfo(object sender, RoutedEventArgs e) { Register_Window rw = new Register_Window(); rw.Show(); this.Hide(); }
private void BtnRegisterAccount_Click(object sender, RoutedEventArgs e) { string naam = ""; string wachtwoord = ""; try { naam = txtRegisterNaam.Text; wachtwoord = txtRegisterWachtwoord.Password; } finally { Student student = new Student(naam, wachtwoord); _controller.addStudent(student); } MainWindow mainwindow = new MainWindow(); Register_Window.Close(); mainwindow.Show(); }