public _00007_AsignarAgenteSubSector() { InitializeComponent(); _agenteSubSectorServicio = new AgenteSubSectorServicio(); _subSectorServicio = new SubSectorServicio(); _sectorServicio = new SectorServicio(); this.WindowState = FormWindowState.Maximized; this.imgBuscarNoAsignados.Image = PresentacionBase.Imagenes.BotonBuscar; this.imgBuscarAsignados.Image = PresentacionBase.Imagenes.BotonBuscar; this.txtBuscarAsignados.Enter += Control_Enter; this.txtBuscarNoAsignado.Enter += Control_Enter; this.txtBuscarAsignados.Leave += Control_Leave; this.txtBuscarNoAsignado.Leave += Control_Leave; this.btnActualizar.Image = PresentacionBase.Imagenes.BotonActualizar; this.btnEjecutar.Image = PresentacionBase.Imagenes.BotonEjecutar; this.btnSalir.Image = PresentacionBase.Imagenes.BotonSalir; PoblarComboBox(this.cmbSector, _sectorServicio.ObtenerTodo(), "Descripcion"); if (this.cmbSector.Items.Count > 0) { PoblarComboBox(this.cmbSubSector, _subSectorServicio.ObtenerTodo(Convert.ToInt64(this.cmbSector.SelectedValue)), "Descripcion"); } }