private void AddNewIssueEffort(NodeView nodeView)
        {
            AddEditIssueEffortDialog dialog = new AddEditIssueEffortDialog();
            dialog.Title = "Add new Issue Effort";

            dialog.Show();
            dialog.Closed +=
                (s1, e1) =>
                {
                    if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
                    {
                        NodeView child = new NodeView(nodeView)
                        {
                            Id = dialog.SavedIssueEffort.Id,
                            Name = dialog.SavedIssueEffort.Effort.ToString(),
                            Description = dialog.SavedIssueEffort.Description,
                            Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png",
                            Type = NodeType.IssueEffortNode,
                            HasChildren = false,
                            SortField = dialog.SavedIssueEffort.Ordinal.ToString(),
                            IsActive = dialog.SavedIssueEffort.IsActive
                        };
                        if (nodeView.ChildrenLoaded)
                        {
                            nodeView.Children.Add(child);
                            nodeView.Sort();
                        }
                    }
                    nodeView.Sort(false);
                };
        }
        private void EditIssueEffort(NodeView nodeView)
        {
            AddEditIssueEffortDialog dialog = new AddEditIssueEffortDialog(nodeView.Id);
            dialog.Title = "Edit Issue Effort";
            dialog.Show();

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