Пример #1
0
        private void BtRegresar_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
            Alta a = new Alta();

            a.Show();
        }
Пример #2
0
        private void LbAcceder_Click(object sender, RoutedEventArgs e)
        {
            String res = Conexion.comprabarPwd(tbUsuario.Text, tbContra.Text);

            if (res.Equals("contraseña correcta"))
            {
                Alta w = new Alta();
                w.Show();
                this.Close();
            }

            else
            {
                MessageBox.Show(res);
            }
        }