예제 #1
0
        private void BtnRegistreren_Click(object sender, RoutedEventArgs e)
        {
            Register registreren = new Register();

            Main_Window.Close();
            registreren.Show();
        }
예제 #2
0
        private void BtnBevestigInLoggen_Click(object sender, RoutedEventArgs e)
        {
            Student student = _businesscontroller.getStudentLogIn(txtNaamInLoggen.Text, txtWachtwoordInLoggen.Text);

            if (student != null)
            {
                MainWindow mainwindow = new MainWindow();
                Main_Window.Close();
                mainwindow.Show();
            }
            else
            {
                MessageBox.Show("Invalid username or password.");
            }
        }