Наследование: System.MarshalByRefObject
Пример #1
0
        public static Folder_V3         tmFolder(this urn.microsoft.guidanceexplorer.Folder folder, Guid libraryId, TM_Xml_Database tmDatabase)
        {
            if (folder.isNull())
            {
                return(null);
            }
            if (folder.folderId.isNull())                               // handle legacy case where there is no folderId in the guidanceitems object
            {
                folder.folderId = Guid.NewGuid().str();
            }
            var tmFolder = new Folder_V3
            {
                libraryId  = libraryId,
                name       = folder.caption,
                folderId   = folder.folderId.guid(),
                subFolders = tmDatabase.tmFolders(libraryId, folder.folder1)
            };

            foreach (var view in folder.view)
            {
                tmFolder.views.Add(new View_V3  {
                    viewId = view.id.guid()
                });
            }
            return(tmFolder);
        }
Пример #2
0
 public static Folder_V3 tmFolder(this urn.microsoft.guidanceexplorer.Folder folder, Guid libraryId, TM_Xml_Database tmDatabase)
 {
     if (folder.isNull())
         return null;
     if (folder.folderId.isNull())				// handle legacy case where there is no folderId in the guidanceitems object
             folder.folderId = Guid.NewGuid().str();
     var tmFolder= new Folder_V3
             {
                 libraryId = libraryId,
                 name = folder.caption,
                 folderId = folder.folderId.guid(),
                 subFolders = tmDatabase.tmFolders(libraryId, folder.folder1)
             };
     foreach(var view in folder.view)
         tmFolder.views.Add(new View_V3  { viewId = view.id.guid()});
     return tmFolder;
 }
 public static List<TeamMentor_Article> xmlDB_GuidanceItems(this TM_Xml_Database tmDatabase, Folder_V3 folder)
 {
     return tmDatabase.tmGuidanceItems_InFolder(folder.folderId);
 }
Пример #4
0
 public static List <TeamMentor_Article> xmlDB_GuidanceItems(this TM_Xml_Database tmDatabase, Folder_V3 folder)
 {
     return(tmDatabase.tmGuidanceItems_InFolder(folder.folderId));
 }