private void Button_Click(object sender, RoutedEventArgs e) { var result = BaseDAO.DangNhap(tbUserName.Text, passwordBox.Password); MainWindow win2 = new MainWindow(); win2.Show(); this.Close(); }