/// <summary>
 /// 递归添加项
 /// </summary>
 /// <param name="item">检查的项</param>
 private void ToAddListData(MyXTreeItem item)
 {
     _myDataList.Add(item);
     ///递归退出条件
     if (item.ChildrenItem.Count == 0)
     {
         return;
     }
     foreach (MyXTreeItem child in item.ChildrenItem)
     {
         ToAddListData(child);
     }
 }
 /// <summary>
 /// 拷贝构造函数
 /// 不拷贝Children
 /// </summary>
 /// <param name="item">要拷贝的对象</param>
 public MyXTreeItem(MyXTreeItem item)
 {
     this.XName = item.XName;
     ///重新申请一个新的空间
     this.ChildrenItem       = new List <MyXTreeItem>();
     this.TypeImagePath      = item.TypeImagePath;
     this.IsExpanded         = item.IsExpanded;
     this.IsSelected         = item.IsSelected;
     this.MyCodeBoxType      = item.MyCodeBoxType;
     this.MyHitText          = item.MyHitText;
     this.MyXaributeChildren = item.MyXaributeChildren;
     this.ReturnValue        = item.ReturnValue;
     this.SystemCodeString   = item.SystemCodeString;
     this.IsEnabled          = item.IsEnabled;
     this.IsVisiblity        = item.IsVisiblity;
 }