private void NewMessageMenuItem_Click(object sender,EventArgs e)
        {
            using NetworkMessageForm networkMessageForm = new NetworkMessageForm();
            networkMessageForm.ShowDialog();

            if (networkMessageForm.IsOk)
            {
                CanTreeTag            canTreeTag = (CanTreeTag)NetworkDefinitionView.SelectedNode.Tag;
                Configuration.Message message    = ConfigService.AddMessage(networkMessageForm.Message.name,networkMessageForm.Message.id,canTreeTag.Node,canTreeTag.Bus);
                TreeNode nodeTreeNode            = AddNode(NetworkDefinitionView.SelectedNode.Nodes,message.name,CanTreeTag.MESSAGE,canTreeTag.Node,canTreeTag.Bus,message,null);
                NetworkDefinitionView.SelectedNode = nodeTreeNode;
                UpdateUnknownCan(true);
            }
        }
        private void EditMessageMenuItem_Click(object sender,EventArgs e)
        {
            CanTreeTag canTreeTag = (CanTreeTag)NetworkDefinitionView.SelectedNode.Tag;

            using NetworkMessageForm networkMessageForm = new NetworkMessageForm(canTreeTag.Message);
            networkMessageForm.ShowDialog();

            if (networkMessageForm.IsOk)
            {
                canTreeTag.Node.name = networkMessageForm.Message.name;
                NetworkDefinitionView.SelectedNode.Text        = networkMessageForm.Message.name;
                NetworkDefinitionView.SelectedNode.ToolTipText = "(" + networkMessageForm.Message.id + ")";
                UpdateUnknownCan(true);
            }
        }