public DockBayFloating(DockFormFloating form, DockBay root)
 {
     _neigh = DockNeigh.InitializeNeigh(this, root);
     _helper = new DockingHelper(this, root.TopLevelControl as Form);
     _helper.IndicatorStyle = HelperModes.InnerHelperOnly;
     _helper.FormDragDrop += _helper_FormDragDrop;
     root.FloatFormCreated += root_FloatFormCreated;
     foreach (var bay in root.FloatBays)
     {
         var topLevelControl = bay.TopLevelControl as DockFormFloating;
         topLevelControl.FormMoving += otherForm_FormMoving;
         topLevelControl.FormEndMoving += otherForm_FormEndMoving;
         topLevelControl.Disposed += otherForm_Disposed;
     }
 }
        public DockBay()
        {
            _paneTitleBarHeight = SystemInformation.ToolWindowCaptionHeight;
            _helper = new DockingHelper(this, TopLevelControl as Form);
            _helper.FormDragDrop += _helper_FormDragDrop;
            _helper.TopMost = true;
            TitleBarHeight = 16;

            FloatBays = new List<DockBayFloating>();
            FloatFormOrder = new LinkedList<DockFormFloating>();

            MainPane = new RootDockPane(this);
            MainPane.Name = "mainPane";
            Neigh.Add(MainPane, DockDirection.Top);
        }