internal override void SetModal(IntPtr handle, bool Modal) { IntPtr hWnd = HIViewGetWindow (Hwnd.ObjectFromHandle (handle).WholeWindow); if (Modal) BeginAppModalStateForWindow (hWnd); else EndAppModalStateForWindow (hWnd); return; }