void _bay_PaneRemoved(object sender, PaneRemovedEventArgs e)
 {
     var bay = (DockBayBase)sender;
     if (bay.Panes.Count < 1)
     {
         DockBay.Dispose();
         Dispose();
     }
 }
 void _bay_PaneRemoved(object sender, PaneRemovedEventArgs e)
 {
     _rateOf_paneSize.Remove(e.DockPane);
 }
 protected virtual void OnPaneRemoved(PaneRemovedEventArgs e)
 {
     if (PaneRemoved != null)
         PaneRemoved(this, e);
 }
 protected override void OnPaneRemoved(PaneRemovedEventArgs e)
 {
     var dockPane = (DockPane)e.DockPane;
     if (Panes.Count <= 1)
     {
         dockPane.CanFloating = true;
         foreach (DockPane pane in Panes)
         {
             pane.CanFloating = false;
         }
     }
     base.OnPaneRemoved(e);
 }