Beispiel #1
0
        private void incarcaRand(DataGridViewRow pRand, BEmailuriExtrase pElem)
        {
            pRand.Tag = pElem;
            DataGridViewPersonalizat.InitCelulaDeschideClasic(pRand);
            if (pElem.NumarAtasamente != 0)
            {
                DataGridViewPersonalizat.initCelulaImagine(pRand, EnumColoaneDGV.colAttachment.ToString(), (System.Drawing.Image)Properties.Resources.attachment);
            }
            else
            {
                DataGridViewPersonalizat.initCelulaImagine(pRand, EnumColoaneDGV.colAttachment.ToString(), new Bitmap(1, 1));
            }

            pRand.Cells[EnumColoaneDGV.colSender.ToString()].Value  = pElem.Expeditor;
            pRand.Cells[EnumColoaneDGV.colSubiect.ToString()].Value = pElem.Subiect;
            pRand.Cells[EnumColoaneDGV.colData.ToString()].Value    = pElem.DataServer;
        }