Example #1
0
        private void incarcaRand(DataGridViewRow pRand, BUtilizator pElem, BColectieUtilizatoriVenituri pVenituri, Tuple <double, double> pTotal)
        {
            pRand.Tag = pElem;
            pRand.Cells[EnumColoaneDGV.colTehnician.ToString()].Value = pElem.GetNumeCompletUtilizator();

            if (!CUtil.EsteListaVida <BUtilizatoriVenituri>(pVenituri))
            {
                pRand.Cells[EnumColoaneDGV.colTipVenit.ToString()].Value = pVenituri.ToString();
            }

            this.dgvListaVenituri.SeteazaFontIngrosat(pRand, EnumColoaneDGV.colTotal.ToString());

            if (pTotal != null)
            {
                DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colNrElemente.ToString(), pTotal.Item1);
                DataGridViewPersonalizat.InitCelulaValoareMonetara(pRand, EnumColoaneDGV.colTotal.ToString(), pTotal.Item2);
            }

            DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand, EnumColoaneDGV.colDetalii.ToString());
        }
Example #2
0
 private void incarcaRand(DataGridViewRow pRand, BUtilizator pElem)
 {
     pRand.Tag = pElem;
     DataGridViewPersonalizat.InitCelulaSelectieUnica(pRand, true);
     pRand.Cells[1].Value = pElem.GetNumeCompletUtilizator();
 }