Beispiel #1
0
 //Процесс рисования фигуры
 private void canvas1_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left && shape != null)
     {
         shape.Drawing(e.Location, this.canvas1);
     }
 }
Beispiel #2
0
 static void Drawing(IDrawable drawingFigure)
 {
     drawingFigure.Drawing(5);
     drawingFigure.DrawInColours();
 }