private void ActualizarControles() { listU = UsuarioDAO.getList(); listD = DepartamentoDAO.getList(); listR = RegistroDAO.getList(); cmbId.DataSource = null; cmbId.DisplayMember = "idUsuario"; cmbId.DataSource = listU; }
private void ActualizarDataGrids() { listR = RegistroDAO.getList(); listUR = UsuarioDAO.GetUsuariosEnEdificio(); Frequencia f = DepartamentoDAO.BuscarDepartamentoConcurrido(); dataRegist.DataSource = listR; dataBuilding.DataSource = listUR; lblfreq.Text = f.frecuencia.ToString(); lvlTop.Text = f.nombre; }
private void ActualizarControles() { listU = UsuarioDAO.getList(); listD = DepartamentoDAO.getList(); listR = RegistroDAO.getList(); cmbD.DataSource = null; cmbD.DisplayMember = "name"; cmbD.ValueMember = "Department ID"; cmbD.DataSource = listD; cmbId.DataSource = null; cmbId.DisplayMember = "User ID"; cmbId.DataSource = listU; }