private void FrmMonitoreo_Load(object sender, EventArgs e) { DL_AgenteObj = new DL_Agente(Properties.Settings.Default.cnxAgente); DataTable dt = DL_AgenteObj.GetLogProyectos(); if (dt.Rows.Count > 0) { cboProyecto.Items.Add("TODOS"); for (int i = 0; i < dt.Rows.Count; i++) { cboProyecto.Items.Add(dt.Rows[i][0].ToString().ToUpper()); } } cboProyecto.Text = "Todos"; Dgv_Eventos.CellPainting += new DataGridViewCellPaintingEventHandler(Dgv_Eventos_CellPainting); LoagGridLog(); }
public BL_Agente(string cnx) { DL_AgenteObj = new DL_Agente(cnx); }