Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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;
 }