示例#1
0
        private void alumnos_back(object sender, RoutedEventArgs e)
        {
            MainW mw = new MainW();

            mw.Show();
            this.Close();
        }
示例#2
0
        private void formulario_back(object sender, RoutedEventArgs e)
        {
            MainW mw = new MainW();

            mw.Show();
            this.Close();
        }
示例#3
0
        private void entrar_click(object sender, RoutedEventArgs e)
        {
            string user     = txtUser.Text;
            string password = txtPass.Password;

            if (user == "Macarena" && password == "cacalchen2000")
            {
                MainW mw = new MainW();
                mw.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("¡Por favor introduzca los datos correctos!");
                txtUser.Text     = "";
                txtPass.Password = "";
            }
        }