예제 #1
0
        public Inicio()
        {
            InitializeComponent();
            Conexion2 ventu = new Conexion2();

            ventu.Registro();
        }
예제 #2
0
        private void btIngreso_Click(object sender, EventArgs e)
        {
            MessageBox.Show("A ingresado al sistema");

            Conexion2 ventu = new Conexion2();

            ventu.Registro();

            Menu FormRegister = new Menu();

            FormRegister.Show();
            this.Hide();

            if (this.ValidateChildren(ValidationConstraints.Enabled))
            {
                //Todo es correcto, guardamos los datos
            }
            else
            {
                MessageBox.Show("Faltan algunos campos por rellenar");
            }
        }