private void DgvListaTari_EditareLinie(DataGridViewPersonalizat pDGVSender, int pIndexRand)
        {
            if (this.lSeIncarca)
            {
                return;
            }
            try
            {
                incepeIncarcarea();

                BTari taraDeModificat = this.dgvListaTari.Rows[pIndexRand].Tag as BTari;

                if (taraDeModificat != null)
                {
                    if (FormAdaugareTara.Afiseaza(this.GetFormParinte(), taraDeModificat))
                    {
                        incarcaRand(this.dgvListaTari.Rows[pIndexRand], taraDeModificat);
                    }
                }
            }
            catch (Exception ex)
            {
                GestiuneErori.AfiseazaMesaj(this.GetFormParinte(), ex);
            }
            finally
            {
                finalizeazaIncarcarea();
            }
        }
示例#2
0
 public static bool Afiseaza(Form pEcranPariente, BTari pTara)
 {
     using (FormAdaugareTara ecran = new FormAdaugareTara(pTara))
     {
         ecran.AplicaPreferinteleUtilizatorului();
         return(CCL.UI.IHMUtile.DeschideEcran(pEcranPariente, ecran));
     }
 }