示例#1
0
        private async void load(string url)
        {
            HMS.SP.Navigation spNavigation = await SPGet.getNavigation(spglb.myClient, url);

            this.add_Navigation(1, spNavigation);
            this.hide_running();
        }
示例#2
0
 public int  add_Navigation(int pos, int level, HMS.SP.Navigation spNavigation)
 {
     if (spNavigation.__HMSError_ != null && (spNavigation.__HMSError_.errno != 0 || spNavigation.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spNavigation.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spNavigation.__deferred_);
     pos = this.add__metadata(pos, level, spNavigation.__metadata_);
     pos = this.add__rest(pos, level, spNavigation.__rest);
     pos = this.add_deferredAt(pos, level, "QuickLaunch", "...", myType.GetType("SP.NavigationNode"), spNavigation.QuickLaunch_.__deferred_);           //NavigationNode;
     pos = this.add_deferredAt(pos, level, "TopNavigationBar", "...", myType.GetType("SP.NavigationNode"), spNavigation.TopNavigationBar_.__deferred_); //NavigationNode;
     pos = this.add_lineAt(pos, level, "UseShared", HMS.SP.SPUtil.toString(spNavigation.UseShared_));                                                   //Boolean;
     return(pos);
 }
示例#3
0
 public int add_Navigation_deferred(int pos, int level, HMS.SP.Navigation spNavigation)
 {
     {
         string useUrl = spNavigation.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "Navigation", "", knownPages.pageNavigation, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "Navigation", "", knownPages.NONE, "");
             pos = this.add_Navigation(pos, level + 1, spNavigation);
         }
     }
     return(pos);
 }
示例#4
0
 public int add_Navigation(int level, HMS.SP.Navigation spNavigation)
 {
     return(add_Navigation(-1, level, spNavigation));
 }