コード例 #1
0
        private void B_logind_Click(object sender, RoutedEventArgs e)
        {
            Logic logic = new Logic();


            if (logic.checkLogin(TB_personnummer.Text, TB_password.Password) == true)
            {
                //Thread.Sleep(3000);

                //MainWindow MW = new MainWindow();
                //MW.Show();
                this.Close();
                Application.Current.MainWindow.Show();
            }
            else
            {
                MessageBox.Show("Forkert ID eller password \n          Prøv igen");
                TB_password.Clear();
                TB_personnummer.Clear();
                TB_personnummer.Focus();
            }
        }
コード例 #2
0
 private void TB_personnummer_GotFocus(object sender, RoutedEventArgs e)
 {
     TB_personnummer.Clear();
 }