コード例 #1
0
        public static View_V3 tmView(this urn.microsoft.guidanceexplorer.View view, Guid libraryId, Guid folderId)
        {
            var tmView = new View_V3
            {
                libraryId = libraryId,
                folderId  = folderId,
                viewId    = view.id.guid(),
                caption   = view.caption,
                author    = view.author,
            };

            if (view.items.notNull())
            {
                if (view.items.item.notNull())
                {
                    foreach (var item in view.items.item)
                    {
                        tmView.guidanceItems.add(item.guid());
                    }
                }
            }
            return(tmView);
        }
コード例 #2
0
 public static View_V3 tmView(this urn.microsoft.guidanceexplorer.View view, Guid libraryId, Guid folderId)
 {
     var tmView = new View_V3
                     {
                         libraryId = libraryId,
                         folderId = folderId,
                         viewId= view.id.guid(),
                         caption = view.caption,
                         author = view.author,
                     };
     if(view.items.notNull())
         if(view.items.item.notNull())
             foreach(var item in view.items.item)
                 tmView.guidanceItems.add(item.guid());
     return tmView;
 }