Exemplo n.º 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();
            }
        }
Exemplo n.º 2
0
 public static bool Afiseaza(Form pEcranPariente, BBanci pBanca)
 {
     using (FormDetaliiBanca ecran = new FormDetaliiBanca(pBanca))
     {
         ecran.AplicaPreferinteleUtilizatorului();
         return(CCL.UI.IHMUtile.DeschideEcran(pEcranPariente, ecran));
     }
 }
Exemplo n.º 3
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();
            }
        }