private void OnCursorChanged(int c_type) { if (OnCursorChangedEvent != null) { OnCursorChangedEvent(c_type); } viewPort1.UIThread(() => { viewPort1.Cursor = CursorManager.Get_Cursor(c_type); }); }