protected internal virtual void LayoutCollapsed(RendererBase renderer, Rectangle bounds) { rectangle_1 = bounds; rectangle_1.Offset(0, renderer.TitleBarMetrics.Margin.Top); rectangle_1.Height = renderer.TitleBarMetrics.Height - (renderer.TitleBarMetrics.Margin.Top + renderer.TitleBarMetrics.Margin.Bottom); method_17(); bounds.Offset(0, renderer.TitleBarMetrics.Height); bounds.Height -= renderer.TitleBarMetrics.Height; rectangle_3 = bounds; rectangle_2 = Rectangle.Empty; foreach (DockControl dockControl in Controls) { Rectangle bounds2 = renderer.AdjustDockControlClientBounds(this, dockControl, rectangle_3); dockControl.method_0(dockControl == _selectedControl); dockControl.Bounds = bounds2; } }
protected internal override void Layout(RendererBase renderer, Graphics graphics, Rectangle bounds, bool floating) { base.Layout(renderer, graphics, bounds, floating); method_18(); if (Collapsed && DockContainer.Boolean_6) return; CalculateLayout(renderer, bounds, floating, out rectangle_1, out rectangle_2, out rectangle_3, out rectangle_4); bool_4 = true; try { if (rectangle_1 != Rectangle.Empty) { method_17(); } method_19(renderer, graphics, rectangle_2); foreach (DockControl dockControl in Controls) { if (dockControl != SelectedControl) { dockControl.method_0(false); } } foreach (DockControl dockControl2 in Controls) { if (dockControl2 == SelectedControl) { Rectangle bounds2 = renderer.AdjustDockControlClientBounds(this, dockControl2, rectangle_3); dockControl2.Bounds = bounds2; dockControl2.method_0(true); } } } finally { bool_4 = false; } }