void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.Warehouse_TreeDataGrid = ((TreeDataGrid_Warehouse.Controls.TreeDataGrid.TreeDataGrid)(target));
         return;
     }
     this._contentLoaded = true;
 }
        internal TreeNode(TreeDataGrid tree, object tag)
        {
            if (tree == null)
            {
                throw new ArgumentNullException("tree");
            }

            _tree     = tree;
            _children = new NodeCollection(this);
            _nodes    = new ReadOnlyCollection <TreeNode> (_children);
            _tag      = tag;
        }