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