private void AddNewDocumentAuthor(NodeView nodeView)
        {
            AddEditDocumentAuthorDialog dialog = new AddEditDocumentAuthorDialog();
            dialog.Show();

            dialog.Closed +=
                (s1, e1) =>
                {
                    if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
                    {
                        NodeView child = new NodeView(nodeView)
                        {
                            Id = dialog.DocumentAuthor.Id,
                            Name = dialog.DocumentAuthor.Name,
                            Description = dialog.DocumentAuthor.Description,
                            Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png",
                            Type = NodeType.DocumentAuthorNode,
                            SortField = dialog.DocumentAuthor.Ordinal.ToString(),
                            HasChildren = false
                        };
                         if (nodeView.ChildrenLoaded)
                        {
                            nodeView.Children.Add(child);
                            nodeView.Sort();
                        }

                    }
                };
        }
        private void EditDocumentAuthor(NodeView nodeView)
        {
            AddEditDocumentAuthorDialog dialog = new AddEditDocumentAuthorDialog(nodeView.Id);
            dialog.Title = "Edit Document Author";

            dialog.Show();
            dialog.Closed +=
                (s1, e1) =>
                {
                    if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
                    {
                        nodeView.Name = dialog.DocumentAuthor.Name;
                        nodeView.Description = dialog.DocumentAuthor.Description;
                        nodeView.SortField = dialog.DocumentAuthor.Ordinal.ToString();
                    }
                    nodeView.Parent.Sort();
                };
        }