Brewmaster.Layout.LayoutHandler.CreateFloatPanel C# (CSharp) Method

CreateFloatPanel() protected method

protected CreateFloatPanel ( IdePanel panel, Point? location = null, Size? size = null ) : void
panel IdePanel
location Point?
size Size?
return void
		protected void CreateFloatPanel(IdePanel panel, Point? location = null, Size? size = null)
		{
			var floatPanel = new FloatPanel(this);
			floatPanel.SuspendLayout();
			floatPanel.SetChildPanel(panel);
			floatPanel.Show(_form);

			if (location.HasValue) floatPanel.Location = location.Value;
			if (size.HasValue) floatPanel.Size = size.Value;
			floatPanel.ResumeLayout();
		}