private void btnKlanten_Click(object sender, RoutedEventArgs e) { Klanten p = new Klanten(); p.Show(); Dashbord s = new Dashbord(); App.Current.MainWindow.Close(); this.Close(); }
private void btnLogi_Click(object sender, RoutedEventArgs e) { if (txtLogin.Text != mainLogin || pwbPassword.Password != password) { MessageBox.Show("verkeerde login naam"); } Dashbord p = new Dashbord(); p.Show(); MainWindow c = new MainWindow(); App.Current.MainWindow.Close(); }