hMailServer.Administrator.formMain.RefreshCurrentNode C# (CSharp) Method

RefreshCurrentNode() public method

public RefreshCurrentNode ( string newName ) : void
newName string
return void
        public void RefreshCurrentNode(string newName)
        {
            INode internalNode = currentlySelectedNode.Tag as INode;
            if (!string.IsNullOrEmpty(newName))
                internalNode.Title = newName;

            if (currentlySelectedNode.Text != Strings.Localize(internalNode.Title))
                currentlySelectedNode.Text = Strings.Localize(internalNode.Title);

            currentlySelectedNode.Nodes.Clear();

            labelTopCaption.Text = currentlySelectedNode.Text;

            int recursion = internalNode.GetType() == typeof(Administrator.Nodes.NodeDomains) ? 1 : 2;

            LoadNodeChildren(currentlySelectedNode, recursion);
        }

Same methods

formMain::RefreshCurrentNode ( System color, string newName ) : void