private void ConstruiesteRanduriDGV() { this.dgvListaParametrabila.IncepeContructieRanduri(); var listaElem = BListeParametrabile.GetListByParam(this.lTipLista, CDL.iStomaLab.CDefinitiiComune.EnumStare.Activa, null); foreach (var elem in listaElem) { incarcaRand(this.dgvListaParametrabila.Rows[this.dgvListaParametrabila.Rows.Add()], elem); } this.dgvListaParametrabila.FinalizeazaContructieRanduri(); this.lblTotalLista.Text = BMultiLingv.getElementById(BMultiLingv.EnumDictionar.Total) + this.dgvListaParametrabila.RowCount.ToString(); }
private void ConstruiesteRanduriDGV() { var listaElem = BListeParametrabile.GetListByParam(this.lTipLista, CDL.iStomaLab.CDefinitiiComune.EnumStare.Toate, null); if (listaElem.ContineElementeDeactivate()) { this.btnActiviInactivi.Visible = true; } else { this.btnActiviInactivi.Visible = false; this.btnActiviInactivi.Selectat = false; } if (!this.btnActiviInactivi.Selectat) { ConstruiesteRanduriDGV(listaElem.GetListaActive()); } else { ConstruiesteRanduriDGV(listaElem.GetListaInactive()); } }