private void FrmListaMatricula_Load(object sender, EventArgs e) { try { this.conexion = new ConexionCapacitaciones(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void FrmAgregarNuevoCurso_Load(object sender, EventArgs e) { try { this.conexion = new ConexionCapacitaciones(); } catch (Exception ex) { throw ex; } }
private void FrmGestionCursos_Load(object sender, EventArgs e) { try { this.conexion = new ConexionCapacitaciones(); this.deshabilitar(); } catch (Exception ex) { throw ex; } }
private void FrmListaColaboradores_Load(object sender, EventArgs e) { try { this.conexion = new ConexionCapacitaciones(); this.consultarLista(); } catch (Exception ex) { throw ex; } }
//carga la clase de conexion desde que inicia la ejecucion de la pantalla private void FrmAgregarNuevoColaborador_Load(object sender, EventArgs e) { try { this.conexion = new ConexionCapacitaciones(); this.deshabilitar(); } catch (Exception ex) { throw ex; } }
private void FrmAgregarNuevaMatricula_Load(object sender, EventArgs e) { try { this.conexion = new ConexionCapacitaciones(); this.cbxPeriodo.SelectedIndex = 0; this.deshabilitar(); } catch (Exception ex) { throw ex; } }