private void DgvListaPreturi_EditareLinie(CCL.UI.DataGridViewPersonalizat pDGVSender, int pIndexRand)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                BListaPreturiStandard lucrareDeModificat = this.dgvListaPreturi.Rows[pIndexRand].Tag as BListaPreturiStandard;

                if (lucrareDeModificat != null)
                {
                    if (FormDetaliuLucrare.Afiseaza(this.GetFormParinte(), lucrareDeModificat))
                    {
                        incarcaRand(this.dgvListaPreturi.Rows[pIndexRand], lucrareDeModificat);
                    }
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }
        private void BtnAdaugareLucrare_Click(object sender, EventArgs e)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                if (FormDetaliuLucrare.Afiseaza(this.GetFormParinte(), null))
                {
                    ConstruiesteRanduriDGV();
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }