/// <summary>
 /// Connects to a XWiki server and retrieves the pages list to for a space.
 /// </summary>
 /// <param name="node">The node of a tree control</param>
 public void ShowPages(TreeNode node)
 {
     if (node.Level == TREE_SPACE_LEVEL)
     {
         List <String> pages = Client.GetPagesNames(node.Name);
         Space         space = Wiki[node.Name];
         space.AddDocuments(pages);
         node.Nodes.Clear();
         node.ImageIndex = TREE_SPACE_LEVEL;
         pages.Sort();
         foreach (String pageName in pages)
         {
             String   pageFullName = node.Name + "." + pageName;
             TreeNode childNode    = node.Nodes.Add(pageName);
             childNode.Name       = pageFullName;
             childNode.Tag        = TREE_PAGE_TAG;
             childNode.ImageIndex = TREE_PAGE_LEVEL;
         }
         if (!node.IsExpanded)
         {
             node.ExpandAll();
         }
     }
 }