/// <summary> /// Shows the Splash screen /// </summary> public static void ShowSplashScreen() { m_oSplash = new QTranslucentWindow(); m_oSplash.BackgroundImage = new System.Drawing.Bitmap(Application.StartupPath + @"\IMG\Splash.jpg"); m_oSplash.TopMost = true; m_oSplash.ShowCenteredOnScreen(); Application.Idle += new EventHandler(Application_Idle); }
public static void ShowSplashScreen() { _splashScreen = new QTranslucentWindow { BackgroundImage = new Bitmap(Images.imgSplash), TopMost = true }; _splashScreen.ShowCenteredOnScreen(); Application.Idle += ApplicationIdle; }
private static void Application_Idle(object sender, EventArgs e) { Application.Idle -= new EventHandler(Application_Idle); if (m_oSplash != null) { m_oSplash.Close(); m_oSplash = null; } }
private static void ApplicationIdle(object sender, EventArgs e) { Application.Idle -= ApplicationIdle; if (_splashScreen == null) { return; } _splashScreen.Close(); _splashScreen = null; }