示例#1
0
 private void btnScribble_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<Pencil>();
 }
示例#2
0
 private void btnSelection_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<SelectionTool>();
 }
示例#3
0
 private void btnMagnifier_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<MagnifierTool>();
 }
示例#4
0
 private void btnEraser_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<Eraser>();
 }
示例#5
0
 private void btnOctagon_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<Octagon>();
 }
示例#6
0
 private void btnParallelogram_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<Parallelogram>();
 }
示例#7
0
 private void btnRectangle_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<CourseProject.Gfx.Rectangle>();
 }
示例#8
0
 private void btnTriangle_Click(object sender, EventArgs e)
 {
     canvasView1.Canvas.Tool = ToolFactory.GetInstance<Triangle>();
 }