private void pictureBoxMain_MouseUp(object sender, MouseEventArgs e) { panAndZoom.OnMouseUp(out Cursor cursor); // Module's mouse handling. if (currModule != null && currModule.MouseUp != null) { currModule.MouseUp(sender, transformMouseEvent(e)); } Cursor = cursor; }
private void pictureBoxMain_MouseUp(object sender, MouseEventArgs e) { panAndZoom.OnMouseUp(out Cursor cursor); // MT-safe currentModule. IRasterModule cm = currModuleSafe(); // Module's mouse handling. if (cm != null && cm.MouseUp != null) { cm.MouseUp(sender, transformMouseEvent(e)); } Cursor = cursor; }