Example #1
0
 /// <summary>
 /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
 /// </summary>
 protected override void CreateChildControls()
 {
     if (ViewState[currentControlKey] != null)
     {
         Control c = MainPlaceHolder.FindControl("ManageControl");
         if (c == null)
         {
             string  controlPath = ViewState[currentControlKey].ToString();
             Control control     = (Control)LoadControl(controlPath);
             control.ID = "ManageControl";
             MainPlaceHolder.Controls.Add(control);
         }
     }
     base.CreateChildControls();
 }
 public void Add(DockingWindow window, AddingDirections direction)
 {
     MainPlaceHolder.AddWindow(window, direction);
 }