private void mainImage_MouseLeave(object sender, MouseEventArgs e) { if (Drawing) { Drawing = false; SelectedTool.EndDrawing(GetPoint(e)); Draw(); } this.Cursor = Cursors.Arrow; }
private void mainImage_MouseUp(object sender, MouseButtonEventArgs e) { Drawing = false; SelectedTool.EndDrawing(GetPoint(e)); Draw(); }