private void DgvListaLocalitati_EditareLinie(DataGridViewPersonalizat pDGVSender, int pIndexRand) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); BLocalitati localitateDeModificat = this.dgvListaLocalitati.Rows[pIndexRand].Tag as BLocalitati; if (localitateDeModificat != null) { if (FormAdaugaLocalitate.Afiseaza(this.GetFormParinte(), localitateDeModificat)) { ConstruiesteRanduriDGV(); } } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }
private void BtnAdaugaLocalitate_Click(object sender, EventArgs e) { if (this.lSeIncarca) { return; } try { incepeIncarcarea(); if (FormAdaugaLocalitate.Afiseaza(this.GetFormParinte(), null)) { ConstruiesteRanduriDGV(); } } catch (Exception ex) { GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex); } finally { finalizeazaIncarcarea(); } }