private void AddNewClasification(NodeView nodeView)
        {
            AddEditIssueClassificationDialog addEditIssueClassificationDialog = new AddEditIssueClassificationDialog();
            addEditIssueClassificationDialog.DataContext = new AddEditClassificationModel { View = addEditIssueClassificationDialog };
            addEditIssueClassificationDialog.Show();

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

                        if (nodeView.ChildrenLoaded)
                        {
                            nodeView.Children.Add(child);
                            nodeView.Sort(true);
                        }
                    }

                };
        }
        private void EditClasification(NodeView nodeView)
        {
            AddEditIssueClassificationDialog addEditIssueClassificationDialog = new AddEditIssueClassificationDialog(nodeView.Id);
            addEditIssueClassificationDialog.Title = "Edit Issue Classification";

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