ARCed.UI.DockPanel.DockDragHandler.EndDrag C# (CSharp) Method

EndDrag() private method

private EndDrag ( bool abort ) : void
abort bool
return void
            private void EndDrag(bool abort)
            {
                if (abort)
                    return;

                if (!this.Outline.FloatWindowBounds.IsEmpty)
                    this.DragSource.FloatAt(this.Outline.FloatWindowBounds);
                else if (this.Outline.DockTo is DockPane)
                {
                    var pane = this.Outline.DockTo as DockPane;
                    this.DragSource.DockTo(pane, this.Outline.Dock, this.Outline.ContentIndex);
                }
                else if (this.Outline.DockTo is DockPanel)
                {
                    var panel = this.Outline.DockTo as DockPanel;
                    panel.UpdateDockWindowZOrder(this.Outline.Dock, this.Outline.FlagFullEdge);
                    this.DragSource.DockTo(panel, this.Outline.Dock);
                }
            }