Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            operacion open      = new operacion();
            string    resultado = open.conectar();

            MessageBox.Show(resultado);
        }
Ejemplo n.º 2
0
 private void btnbuscar_Click(object sender, EventArgs e)
 {
     {
         operacion open = new operacion();
         dataGridView1.DataSource = open.cosnsultaconresultado("select * from Nomina " + txtbuscar.Text + "");
     }
 }
Ejemplo n.º 3
0
        private void btnguardar_Click(object sender, EventArgs e)
        {
            operacion oper = new operacion();

            oper.consultasinreaultado("insert into nomina(nombre,apellido,cedula,sexo) values('" + txtnombre.Text + "','" + txtpellido.Text + "','" + txtcedula.Text + "','" + txtsexo.Text + "')");
        }