private void UnexpectedModal(string name, IntPtr hWnd, Form form) { Win32.DestroyWindow(hWnd); unexpectedModals.Add(name); }