示例#1
0
        private void DgvListaBanci_EditareLinie(CCL.UI.DataGridViewPersonalizat pDGVSender, int pIndexRand)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                BBanci bancaDeModificat = this.dgvListaBanci.Rows[pIndexRand].Tag as BBanci;

                if (bancaDeModificat != null && !this.btnActivInactiv.Selectat)
                {
                    if (FormDetaliiBanca.Afiseaza(this.GetFormParinte(), bancaDeModificat))
                    {
                        incarcaRand(this.dgvListaBanci.Rows[pIndexRand], bancaDeModificat);
                    }
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }
示例#2
0
        private void BtnAdaugaBanca_Click(object sender, EventArgs e)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

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