public DrawingToolbox(DrawingCanvas drawingCanvas) { this.drawingCanvas = drawingCanvas; this.toolbox.Size = new Size(60, 350); this.toolbox.Location = new Point(0, 21); this.toolbox.BackColor = Color.Silver; this.activePen = new Pen(Color.Black, 4); rectTool = new RectangleTool(this, new Point(5, 55), new Size(40, 40)); lineTool = new LineTool(this, new Point(5, 115), new Size(40, 40)); circleTool = new CircleTool(this, new Point(5, 175), new Size(40, 40)); selectTool = new SelectTool(this, new Point(5, 235), new Size(40, 40)); connectTool = new ConnectTool(this, new Point(5, 285), new Size(40, 40)); this.toolbox.Controls.Add(rectTool.GetButton()); this.toolbox.Controls.Add(lineTool.GetButton()); this.toolbox.Controls.Add(circleTool.GetButton()); this.toolbox.Controls.Add(selectTool.GetButton()); this.toolbox.Controls.Add(connectTool.GetButton()); }