示例#1
0
        private void btCerrar_Click(object sender, EventArgs e)
        {
            RadForm1 form = new RadForm1();
            //this.Close();
            this.Hide();

            Login lg = new Login();
            lg.Show();
        }
示例#2
0
        private void btCerrar_Click(object sender, EventArgs e)
        {
            RadForm1 form = new RadForm1();

            //this.Close();
            this.Hide();

            Login lg = new Login();

            lg.Show();
        }
示例#3
0
        private void funLogin()
        {
            if (txtPass.Text.Length > 0 && txtUser.Text.Length > 0)
            {
                if (UserLogin(txtUser.Text, txtPass.Text))
                {
                    Authenticar = true;

                    RadForm1 rf = new RadForm1();
                    rf.Show();
                    this.Visible = false;
                }
                else
                {
                    Authenticar = false;
                    MessageBox.Show("Usuario or Contraseña no reconocida ");
                }
            }
            else // contraseña o usuario si esta vacio
            {
                Authenticar = false;
                MessageBox.Show("Necesita un Usuario y una Contraseña para continuar");
            }
        }
示例#4
0
        private void funLogin()
        {
            if (txtPass.Text.Length > 0 && txtUser.Text.Length > 0)
            {
                if (UserLogin(txtUser.Text, txtPass.Text))
                {
                    Authenticar = true;

                    RadForm1 rf = new RadForm1();
                    rf.Show();
                    this.Visible = false;

                }
                else
                {
                    Authenticar = false;
                    MessageBox.Show("Usuario or Contraseña no reconocida ");

                }
            }
            else // contraseña o usuario si esta vacio
            {
                Authenticar = false;
                MessageBox.Show("Necesita un Usuario y una Contraseña para continuar");
            }
        }