private void CreateLeftPanel() { LeftPanel = new GdiRectangle { Size = new SizeF(LeftPanelWidth, this.Size.Height) }; this.AddChild(LeftPanel); }
private void CreateRightPanel() { RightPanel = new GdiRectangle { Margin = new PointF(LeftPanelWidth, 0), Size = new SizeF(this.Size.Width - LeftPanelWidth, this.Size.Height) }; this.AddChild(RightPanel); }