Example #1
0
 /// <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);
 }
Example #2
0
 public static void ShowSplashScreen()
 {
     _splashScreen = new QTranslucentWindow {
         BackgroundImage = new Bitmap(Images.imgSplash), TopMost = true
     };
     _splashScreen.ShowCenteredOnScreen();
     Application.Idle += ApplicationIdle;
 }
Example #3
0
 /// <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);
 }
Example #4
0
 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;
     }
 }
Example #5
0
 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;
     }
 }
Example #6
0
 private static void ApplicationIdle(object sender, EventArgs e)
 {
     Application.Idle -= ApplicationIdle;
     if (_splashScreen == null)
     {
         return;
     }
     _splashScreen.Close();
     _splashScreen = null;
 }