private void dgv_list_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dgv_liste.CurrentRow.Cells["id_"].Value != null)
         {
             Int32 id = Convert.ToInt32(dgv_liste.CurrentRow.Cells["id_"].Value);
             if (id > 0)
             {
                 Articles f = ArticlesBLL.One(id);
                 if (e.ColumnIndex == 7)
                 {
                     if (DialogResult.Yes == Messages.Confirmation(Mots.Supprimer.ToLower()))
                     {
                         LoadPhoto(null);
                         if (ArticlesBLL.Delete(f))
                         {
                             DeleteRow(f);
                             Reset();
                             Messages.Succes();
                         }
                     }
                 }
                 else
                 {
                     Populate(f);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Messages.Exception(ex);
     }
 }
 private void dgv_list_SelectionChanged(object sender, EventArgs e)
 {
     try
     {
         if (dgv_liste.Rows.Count > 0)
         {
             if (dgv_liste.CurrentRow.Cells["id_"].Value != null)
             {
                 Int32 id = (Int32)dgv_liste.CurrentRow.Cells["id_"].Value;
                 if (id > 0)
                 {
                     Articles f = ArticlesBLL.One(id);
                     Populate(f);
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Messages.Exception(ex);
     }
 }
 private void UpdateRow(Articles a)
 {
     dgv_liste.Rows.RemoveAt(Utils.GetRowData(dgv_liste, a.Id));
     a = ArticlesBLL.One(a.Id);
     AddRow(a);
 }
 private void Form_View_Load(object sender, EventArgs e)
 {
     current = ArticlesBLL.One(current.Id);
     Populate(current);
     LoadConfig();
 }