private void NewNodeMenuItem_Click(object sender,EventArgs e)
        {
            using NetworkNodeForm networkNodeForm = new NetworkNodeForm();
            networkNodeForm.ShowDialog();

            if (networkNodeForm.IsOk)
            {
                CanTreeTag canTreeTag   = (CanTreeTag)NetworkDefinitionView.SelectedNode.Tag;
                Node       node         = ConfigService.AddNode(networkNodeForm.NodeName);
                TreeNode   nodeTreeNode = AddNode(NetworkDefinitionView.Nodes[0].Nodes,node.name,CanTreeTag.NODE,node,canTreeTag.Bus,null,null);
                NetworkDefinitionView.SelectedNode = nodeTreeNode;
            }
        }
        private void EditNodeMenuItem_Click(object sender,EventArgs e)
        {
            CanTreeTag canTreeTag = (CanTreeTag)NetworkDefinitionView.SelectedNode.Tag;

            using NetworkNodeForm networkNodeForm = new NetworkNodeForm
                  {
                      NodeName = canTreeTag.Node.name
                  };
            networkNodeForm.ShowDialog();

            if (networkNodeForm.IsOk)
            {
                canTreeTag.Node.name = networkNodeForm.NodeName;
                NetworkDefinitionView.SelectedNode.Text = networkNodeForm.NodeName;
            }
        }