Exemplo n.º 1
0
 public void ShowSplash()
 {
     if (this.InvokeRequired)
     {
         var d = new ShowSplashCallback(Show);
         this.Invoke(d);
     }
     else
     {
         this.Show();
     }
 }
Exemplo n.º 2
0
    /// <summary>
    /// Initializes a new instance of the <see cref="Skin"/> class.
    /// </summary>
    protected Skin()
    {
      if (m_theSingleSkin != null) return;
      // set callback if it hasn't already been set
      if (null == m_ShowSplash)
      {
        m_ShowSplash = OnShowSplash;
      }

      System.Drawing.Bitmap icon = MainRhinoIcon;
      string name = ApplicationName;

      IntPtr hicon = IntPtr.Zero;
      if (icon != null)
        hicon = icon.GetHicon();

      m_pSkin = UnsafeNativeMethods.CRhinoSkin_New(m_ShowSplash, name, hicon);
      m_theSingleSkin = this;
    }
Exemplo n.º 3
0
    /// <summary>
    /// Initializes a new instance of the <see cref="Skin"/> class.
    /// </summary>
    protected Skin()
    {
      if (m_theSingleSkin != null) return;
      // set callback if it hasn't already been set
      if (null == m_ShowSplash)
      {
        m_ShowSplash = OnShowSplash;
      }

      System.Drawing.Bitmap icon = MainRhinoIcon;
      string name = ApplicationName;

      IntPtr hicon = IntPtr.Zero;
      if (icon != null)
        hicon = icon.GetHicon();

      m_pSkin = UnsafeNativeMethods.CRhinoSkin_New(m_ShowSplash, name, hicon);
      m_theSingleSkin = this;
    }