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