protected void RegisterForm(Form form)
 {
     if (ParentForm != null)
     {
         ParentForm.AddOwnedForm(form);
     }
 }
 public void ShowUndockingPanels()
 {
     if (!ShowingUndocked)
     {
         foreach (var panel in UndockedPanels)
         {
             if (!panel.FloatingForm.Visible)
             {
                 ParentForm.AddOwnedForm(panel.FloatingForm);
                 panel.FloatingForm.Show();
             }
         }
         ShowingUndocked = true;
     }
 }