Ejemplo n.º 1
0
        internal void AddSiteNode(Site site)
        {
            var selected = treeView1.SelectedNode;

            if (selected == null)
            {
                return;
            }

            var server = GetCurrentData(selected);

            if (server.IsBusy)
            {
                return;
            }

            if (server.SitesNode == null)
            {
                return;
            }

            ManagerTreeNode.AddToParent(server.SitesNode, new SiteTreeNode(_serviceContainer, site, server)
            {
                ContextMenuStrip = cmsSite
            });
        }
Ejemplo n.º 2
0
 internal void AddSiteNode(Site site)
 {
     ManagerTreeNode.AddToParent(GetCurrentData().SitesNode, new SiteTreeNode(_serviceContainer, site)
     {
         ContextMenuStrip = cmsSite
     });
 }