/// <summary>
        /// 创建代码块
        /// </summary>
        protected void CreateCodeBox()
        {
            TreeData td = (TreeData)XTreeView.SelectedItem;

            ///如果不是最终节点则退出
            if (td.IsDataNode == false)
            {
                return;
            }
            CreateCallback?.Invoke(td.Data);
        }
 /// <summary>
 /// 递归添加项
 /// </summary>
 /// <param name="item">检查的项</param>
 private void ToAddListData(TreeData item)
 {
     _myDataList.Add(item);
     ///递归退出条件
     if (item.Children.Count == 0)
     {
         return;
     }
     foreach (TreeData child in item.Children)
     {
         ToAddListData(child);
     }
 }