예제 #1
0
 public ToolLine(Button button, ref List <Figure> figureArrayFrom, PaintBox paintBox_set)
 {
     paintBox          = paintBox_set;
     figureArray       = figureArrayFrom;
     toolButton        = button;
     toolButton.Click += new EventHandler(ToolButtonClick);
     panelProp         = new PanelProp();
     panelProp.Text    = "Line";
     propColor         = new PropColor(Color.Black);
     propColor.Draw(new Point(5, 20), panelProp, "Color:");
     propPenWidth = new PropPenWidth();
     propPenWidth.Draw(new Point(5, 50), panelProp, "Width:");
 }
예제 #2
0
 public ToolRoundedRect(Button button, ref List <Figure> figureArrayFrom, PaintBox paintBox_set)
 {
     paintBox          = paintBox_set;
     figureArray       = figureArrayFrom;
     toolButton        = button;
     toolButton.Click += new EventHandler(ToolButtonClick);
     panelProp         = new PanelProp();
     panelProp.Text    = "Rounded Rect";
     propColor         = new PropColor(Color.Black);
     propColor.Draw(new Point(5, 20), panelProp, "Color:");
     propPenWidth = new PropPenWidth();
     propPenWidth.Draw(new Point(5, 50), panelProp, "Width:");
     propFill = new PropFill(Color.Black);
     propFill.Draw(new Point(5, 80), panelProp, "Fill:");
     propRadius = new PropRadius(25);
     propRadius.Draw(new Point(5, 140), panelProp, "Radius:");
 }