Example #1
0
 //再構築に先立ってコントロールの親子関係の解消
 public void ClearControlTree()
 {
     if (_hostingControl != null)
     {
         _hostingControl.Controls.Clear();
     }
     _first.ClearControlTree();
 }
Example #2
0
 //再構築に先立ってコントロールの親子関係を破棄しておく。その方が何かと紛れがない
 public void ClearControlTree()
 {
     if (_intermediateContainer != null)
     {
         _intermediateContainer.Controls.Clear();
     }
     if (_next != null)
     {
         _next.ClearControlTree();
     }
     if (!this.IsLeaf)
     {
         _childList.ClearControlTree();
     }
 }