public static bool Afiseaza(Form pEcranParinte, BUtilizator pUser) { using (FormDetaliuUtilizator ecran = new FormDetaliuUtilizator(pUser)) { ecran.AplicaPreferinteleUtilizatorului(); return(CCL.UI.IHMUtile.DeschideEcran(pEcranParinte, ecran)); } }
private void BtnAdauga_Click(object sender, EventArgs e) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); if (FormDetaliuUtilizator.Afiseaza(this.GetFormParinte(), null)) { ConstruiesteRanduriDGV(); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }