private void btnReporte_Click(object sender, EventArgs e) { IncidenteCentroAyuda incidentecentroayuda = new IncidenteCentroAyuda(); incidentecentroayuda.Show(); this.SetVisibleCore(false); }
private void btnSiguiente_Click(object sender, EventArgs e) { MySqlCommand comando = new MySqlCommand("INSERT INTO registro (nombre, apellidos, empresa, domicilio, correo, localidad, telefono, celular, cp) VALUES (@NAME, @APP, @EMP, @DOMICILIOO, @COREOO, @LOCALIDAA, @TEL, @CEL, @CPP)", miconexion); comando.Parameters.AddWithValue("@NAME", textNombre.Text); comando.Parameters.AddWithValue("@APP", textApellidos.Text); comando.Parameters.AddWithValue("@EMP", textEmpresa.Text); comando.Parameters.AddWithValue("@DOMICILIOO", textDomicilio.Text); comando.Parameters.AddWithValue("@COREOO", textCorreo.Text); comando.Parameters.AddWithValue("@LOCALIDAA", textLocalidad.Text); comando.Parameters.AddWithValue("@TEL", textTelefono.Text); comando.Parameters.AddWithValue("@CEL", textCelular.Text); comando.Parameters.AddWithValue("@CPP", textCP.Text); miconexion.Open(); comando.ExecuteNonQuery(); miconexion.Close(); MessageBox.Show("Agregado Correctamente"); IncidenteCentroAyuda incidentecentroayuda = new IncidenteCentroAyuda(); incidentecentroayuda.Show(); this.SetVisibleCore(false); }