示例#1
0
文件: MAPIFolder.cs 项目: mo5h/omeo
 private static void SetAsRoot(IResource folder)
 {
     Folder.SetParent(folder, _mapiFolderRoot);
     if (!folder.HasProp(Core.Props.Open))
     {
         folder.SetProp(Core.Props.Open, 1);
         folder.SetProp(PROP.OpenIgnoreFolder, 1);
         folder.SetProp(PROP.OpenSelectFolder, 1);
     }
 }
示例#2
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);
     }
 }