Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();

            VentanaInicio ventin = new VentanaInicio();

            ventin.Show();
        }
Exemplo n.º 2
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            //aca se revisa si el usuario existe, en el caso de existir se inicia sesion
            //por ahora lo hare con un unico usuario y con una contraseña unica
            if (txtid.Text == "asdf" && txtcont.Text == "123")
            {
                //se inicio sesion
                this.Hide();

                VentanaInicio ventana2 = new VentanaInicio();
                ventana2.Show();
            }
            else
            {
                MessageBox.Show("Error en el ingreso, intentelo de nuevo");

                txtid.Text   = "";
                txtcont.Text = "";
                txtid.Focus();
            }
        }