private void frmEmpleado_Load(object sender, EventArgs e) { cboSexo.SelectedIndex = 0; var tabla = NArea.ListarArea(); if (tabla.Rows.Count > 0) { cboArea.DataSource = tabla; cboArea.DisplayMember = "nombre"; cboArea.ValueMember = "idarea"; } }
private void frmCita_Load(object sender, EventArgs e) { dtpFecha.Value = DateTime.Now; var tabla = NArea.ListarArea(); if (tabla.Rows.Count > 0) { cboArea.DataSource = tabla; cboArea.DisplayMember = "nombre"; cboArea.ValueMember = "idarea"; } cboTipoDoc.SelectedIndex = 0; txtCorrelativo.Text = ""; estiloDgv(); NumeroComprobante(); dgvMacota.ColumnHeadersDefaultCellStyle.Font = new Font("Segoe UI", 10, FontStyle.Bold); dgvDetalleCita.ColumnHeadersDefaultCellStyle.Font = new Font("Segoe UI", 10, FontStyle.Bold); }