public void ShowSplash() { if (this.InvokeRequired) { var d = new ShowSplashCallback(Show); this.Invoke(d); } else { this.Show(); } }
/// <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; }