public LeftBoard(Engine game, int width, int height) : base() { this.game = game; DoubleBuffered = true; layout = new FlowLayoutPanel(); layout.FlowDirection = FlowDirection.TopDown; layout.AutoSize = true; BackColor = Color.White; Width = width; Height = height; menu = new GameMenu(); menu.BringToFront(); countMenu = new CountMenu(); countMenu.Margin = new Padding(0, 0, 0, 40); countMenu.BringToFront(); layout.Controls.Add(countMenu); layout.Controls.Add(menu); layout.Location = new Point((Width - menu.Width) / 2 + 100, (Height - menu.Height) / 2 - 100); Controls.Add(layout); Paint += Score_Paint; }