void end_draw(object sender, MouseButtonEventArgs e) { current_tool.end_at(e.GetPosition(canvas)); current_tool = new EmptyTool(); }
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); }