Beispiel #1
0
 public RectangleTool(string name, string label, Canvas.ICanvas canvas)
 {
     Name         = name;
     Label        = label;
     Canvas       = canvas;
     activeObject = null;
 }
Beispiel #2
0
 public override void MouseDown(object sender, MouseEventArgs e, Panel panel1, LinkedList <AObject> listObject)
 {
     rectangleObject    = new Object.Rectangle(e.Location, rectangleOpacity, rectangleColor);
     rectangleObject.to = e.Location;
     rectangleObject.setGraphics(panel1.CreateGraphics());
     rectangleObject.Draw();
     panel1.Invalidate();
 }