Pinta.CurvesDialog.HandleDrawingLeaveNotifyEvent C# (CSharp) Method