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