Beispiel #1
0
        public void DockControl(int panelIndex, int index, DockingType direction)
        {
            if (direction == DockingType.Floating)
            {
                throw new ArgumentException("Can't dock to a docking type of floating");
            }
            else
            {
                bool autoHide  = this.AutoHide;
                bool cancelled = this.Cancelled;

                if (this.AutoHide)
                {
                    this.AutoHide = false;
                }

                this.Cancelled = false;

                DockControlContainerCollection panels    = DockControlContainerCollectionHelpers.GetCollection(_manager, direction);
                DockControlContainer           container = panels[panelIndex] as DockControlContainer;

                container.DockControl(this, container.DockedControlList.Count, index);

                RemoveFloatingForm();

                this.AutoHide  = autoHide;
                this.Cancelled = cancelled;
            }
        }
Beispiel #2
0
 static private DockControlContainerCollection GetDockControlContainerCollection(DockingManagerControl manager, DockControlContainer container)
 {
     return(DockControlContainerCollectionHelpers.GetCollection(manager, container.Dock));
 }