Example #1
0
 /// <summary>
 /// Deplacer fichier
 /// </summary>
 /// <param name="fichier">fichier à deplacer</param>
 public void MoveFile(FORM.StoreCloudItemForm fichier)
 {
     try
     {
         StoreCloudItem csi = GetFile(fichier.IDItem);
         csi.NameFile    = fichier.NameFile;
         csi.VirtualPath = fichier.VirtualPath;
         base.SaveBubble(csi);
     }
     catch (Exception ex)
     {
         throw new Exception("MoveFile " + ex.Message, ex);
     }
 }
Example #2
0
 /// <summary>
 /// Deplacer fichier
 /// </summary>
 /// <param name="fichier">fichier à deplacer</param>
 public void EditFile(FORM.StoreCloudItemForm fichier)
 {
     try
     {
         StoreCloudItem csi = GetFile(fichier.IDItem);
         if (csi.ItemSealed)
         {
             throw new Exception("Sealed Item");
         }
         csi.NameFile  = fichier.NameFile;
         csi.LabelFile = fichier.LabelFile;
         base.SaveBubble(csi);
     }
     catch (Exception ex)
     {
         throw new Exception("EditFile " + ex.Message, ex);
     }
 }