private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LoginAdmin Menu = new LoginAdmin();

            Menu.Show();
            this.Hide();
        }
示例#2
0
        private void btnVolver_Click(object sender, EventArgs e)
        {
            LoginAdmin LoginAdm = new LoginAdmin();

            LoginAdm.Show();
            this.Hide();
        }
示例#3
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LoginAdmin Registra = new LoginAdmin();

            Registra.Show();
            this.Hide();
        }
示例#4
0
        private void btnRegistrar_Click(object sender, EventArgs e)
        {
            SqlConnection conex = new SqlConnection("Data Source=IVANLOPEZ;Initial Catalog=ADMINPC;User ID=sa;Password=qewebatengo1");

            conex.Open();

            string Nombre = txtNombre.Text;
            string RFC    = txtRFC.Text;

            string     cade  = "insert into UsuarioAdmin(Nombre, RFC) values ('" + Nombre + "','" + RFC + "')";
            SqlCommand coman = new SqlCommand(cade, conex);

            coman.ExecuteNonQuery();

            MessageBox.Show("Administrador registrado correctamente");
            conex.Close();

            LoginAdmin Log = new LoginAdmin();

            Log.Show();
            this.Hide();
        }