private void EditHirer(NodeView nodeView)
        {
            AddEditMobileHirerDialog dialog = new AddEditMobileHirerDialog(nodeView.Id);
            dialog.Title = "Edit Mobile Hirer";

            dialog.Show();

            dialog.Closed +=
                (s1, e1) =>
                    {
                        if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
                        {
                            nodeView.Name = dialog.MobileHirer.Name;
                            nodeView.Description = dialog.MobileHirer.Description;
                            nodeView.SortField = dialog.MobileHirer.Ordinal.ToString();
                            nodeView.Parent.Sort();
                        }
                    };
        }
        private void AddHirer(NodeView nodeView)
        {
            AddEditMobileHirerDialog dialog = new AddEditMobileHirerDialog();
            dialog.Show();

            dialog.Closed +=
                (s1, e1) =>
                {
                    NodeView parentNode = nodeView;
                    if (dialog.DialogResult.HasValue && dialog.DialogResult.Value)
                    {

                        NodeView child = new NodeView(parentNode)
                        {
                            Id = dialog.MobileHirer.Id,
                            Name = dialog.MobileHirer.Name,
                            Description = dialog.MobileHirer.Description,
                            Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png",
                            Type = NodeType.MobileHirerNode,
                            SortField = dialog.MobileHirer.Ordinal.ToString(),
                            HasChildren = false
                        };
                        if (nodeView.ChildrenLoaded)
                        {
                            parentNode.Children.Add(child);
                            nodeView.Sort();
                        }
                    }
                };
        }