Exemplo n.º 1
0
 private void lk_box_photo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (DialogResult.Yes == Messages.Confirmation(Mots.Confirmer))
     {
         Image i = box_photo.Image;
         if (UsersBLL.DeletePhoto(current))
         {
             box_photo.Image      = global::CATALOGUE_ARTICLE.Properties.Resources.ajouter;
             current.Photo        = "";
             box_photo.Tag        = false;
             lk_box_photo.Visible = false;
             Messages.Succes();
         }
         else
         {
             box_photo.Image = i;
         }
     }
 }