예제 #1
0
		internal override void SetLayout(DynamicLayout layout)
		{
			if (Control != null)
			{
				if (this.layout != null)
					this.layout.RemoveChild(Control);
				if (layout != null)
					layout.AddChild(Control);
			}
			this.layout = layout;
		}
예제 #2
0
 internal override void SetLayout(DynamicLayout layout)
 {
     if (Control != null)
     {
         if (this.layout != null)
         {
             this.layout.RemoveChild(Control);
         }
         if (layout != null)
         {
             layout.AddChild(Control);
         }
     }
     this.layout = layout;
 }