예제 #1
0
 protected override void Execute()
 {
     if (_folder != null && !String.IsNullOrEmpty(_folder.FolderIDs.EntryId))
     {
         IResource resFolder = Folder.Find(_folder.FolderIDs.EntryId);
         if (resFolder != null)
         {
             if (!Folder.IsParentRoot(resFolder))
             {
                 Folder.SetName(resFolder, _folder.Name);
             }
             if (_isMovedFolder && _parentFolder != null)
             {
                 IResource resParentFolder = Folder.Find(_parentFolder.FolderIDs.EntryId);
                 if (resParentFolder != null)
                 {
                     Folder.SetParent(resFolder, resParentFolder);
                 }
             }
         }
         FolderStructureDescriptor.UpdateContactFolder(_folder);
     }
 }