Beispiel #1
0
 void end_draw(object sender, MouseButtonEventArgs e)
 {
     current_tool.end_at(e.GetPosition(canvas));
     current_tool = new EmptyTool();
 }
 void end_draw(object sender, MouseButtonEventArgs e)
 {
     current_tool.end_at(e.GetPosition(canvas));
     current_tool = new EmptyTool();
 }
Beispiel #3
0
 void start_draw(object sender, MouseButtonEventArgs e)
 {
     current_tool = tools.get_current();
     current_tool.start_at(e.GetPosition(canvas));
     canvas.Children.Add(current_tool.shape);
 }
 void start_draw(object sender, MouseButtonEventArgs e)
 {
     current_tool = tools.get_current();
     current_tool.start_at(e.GetPosition(canvas));
     canvas.Children.Add(current_tool.shape);
 }