private void button1_Click(object sender, EventArgs e) { operacion open = new operacion(); string resultado = open.conectar(); MessageBox.Show(resultado); }
private void btnbuscar_Click(object sender, EventArgs e) { { operacion open = new operacion(); dataGridView1.DataSource = open.cosnsultaconresultado("select * from Nomina " + txtbuscar.Text + ""); } }
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 + "')"); }