public ReleasePanel ( IdePanel panel, Point windowLocation ) : void | ||
panel | IdePanel | |
windowLocation | Point | |
return | void |
public void ReleasePanel(IdePanel panel, Point windowLocation)
{
var windowSize = panel.Size;
if (panel.Parent is IdeGroupedPanel groupedPanel)
groupedPanel.RemovePanel(panel);
else
RemovePanelFromSplitContainer(panel);
_form.SuspendLayout();
CreateFloatPanel(panel, windowLocation, windowSize);
_form.ResumeLayout();
}
protected void CreateFloatPanel(IdePanel panel, Point? location = null, Size? size = null)