/// <summary> /// Gets the Windows interface handle of the main window. /// </summary> /// <returns>A interface to the handle.</returns> public static System.Windows.Forms.IWin32Window MainWindow() { if (null == m_mainwnd) { IntPtr pWnd = MainWindowHandle(); if (IntPtr.Zero != pWnd) { m_mainwnd = new RhinoWindow(pWnd); } } return(m_mainwnd); }
/// <summary> /// Gets the Windows interface handle of the main window. /// </summary> /// <returns>A interface to the handle.</returns> public static System.Windows.Forms.IWin32Window MainWindow() { if (null == m_mainwnd) { IntPtr pWnd = MainWindowHandle(); if (IntPtr.Zero != pWnd) m_mainwnd = new RhinoWindow(pWnd); } return m_mainwnd; }