public static void StartSplash()
 {
     if ((bool)SEBClientInfo.getSebSetting("createNewDesktop")["createNewDesktop"])
     {
         SEBDesktopController.SetCurrent(SEBClientInfo.SEBNewlDesktop);
     }
     SebWindowsClientMain.splash = new SEBSplashScreen();
     Application.Run((Form)SebWindowsClientMain.splash);
 }
Exemple #2
0
        public static void StartSplash()
        {
            // Set the threads desktop to the new desktop if "Create new Desktop" is activated
            if ((Boolean)SEBClientInfo.getSebSetting(SEBSettings.KeyCreateNewDesktop)[SEBSettings.KeyCreateNewDesktop])
            {
                SEBDesktopController.SetCurrent(SEBClientInfo.SEBNewlDesktop);
            }

            // Instance a splash form given the image names
            splash = new SEBSplashScreen();
            // Run the form
            Application.Run(splash);
        }
Exemple #3
0
 public static void StartSplash()
 {
     if (SEBClientInfo.SEBNewlDesktop != null && (bool)SEBClientInfo.getSebSetting("createNewDesktop")["createNewDesktop"])
     {
         SEBDesktopController.SetCurrent(SEBClientInfo.SEBNewlDesktop);
     }
     else
     {
         SEBDesktopController.SetCurrent(SEBClientInfo.OriginalDesktop);
     }
     SEBSplashScreen.splash = new SEBSplashScreen();
     Application.Run((Form)SEBSplashScreen.splash);
 }
Exemple #4
0
 /// <summary>
 /// Invokes the thread with the window and closes it
 /// </summary>
 public static void CloseSplash()
 {
     if (splash == null)
         return;
     try
     {
         // Shut down the splash screen
         splash.Invoke(new EventHandler(splash.KillMe));
         splash.Dispose();
         splash = null;
     }
     catch (Exception)
     { }
 }
 /// <summary>
 /// Invokes the thread with the window and closes it
 /// </summary>
 public static void CloseSplash()
 {
     if (splash == null)
     {
         return;
     }
     try
     {
         // Shut down the splash screen
         splash.Invoke(new EventHandler(splash.KillMe));
         splash.Dispose();
         splash = null;
     }
     catch (Exception)
     { }
 }
 public static void CloseSplash()
 {
     if (SebWindowsClientMain.splash == null)
     {
         return;
     }
     try
     {
         SebWindowsClientMain.splash.Invoke((Delegate) new EventHandler(SebWindowsClientMain.splash.KillMe));
         SebWindowsClientMain.splash.Dispose();
         SebWindowsClientMain.splash = (SEBSplashScreen)null;
     }
     catch (Exception ex)
     {
     }
 }
Exemple #7
0
        /// <summary>
        /// Call via separate thread
        /// var thread = new Thread(SEBLoading.StartSplash);
        /// thread.Start();
        /// </summary>
        public static void StartSplash()
        {
            // Set the threads desktop to the new desktop if "Create new Desktop" is activated
            if (SEBClientInfo.SEBNewlDesktop != null && (Boolean)SEBClientInfo.getSebSetting(SEBSettings.KeyCreateNewDesktop)[SEBSettings.KeyCreateNewDesktop])
            {
                SEBDesktopController.SetCurrent(SEBClientInfo.SEBNewlDesktop);
            }
            else
            {
                SEBDesktopController.SetCurrent(SEBClientInfo.OriginalDesktop);
            }

            // Instance a splash form given the image names
            splash = new SEBSplashScreen();
            splash.ShowDialog();
        }
        /// <summary>
        /// Call via separate thread
        /// var thread = new Thread(SEBLoading.StartSplash);
        /// thread.Start();
        /// </summary>
        static public void StartSplash()
        {
            // Set the threads desktop to the new desktop if "Create new Desktop" is activated
            if (false)
            {
                SEBDesktopController.SetCurrent(SEBClientInfo.SEBNewlDesktop);
            }
            else
            {
                SEBDesktopController.SetCurrent(SEBClientInfo.OriginalDesktop);
            }

            // Instance a splash form given the image names
            splash = new SEBSplashScreen();
            // Run the form
            Application.Run(splash);
        }
        public static void StartSplash()
        {
            //Set the threads desktop to the new desktop if "Create new Desktop" is activated
            if ((Boolean)SEBClientInfo.getSebSetting(SEBSettings.KeyCreateNewDesktop)[SEBSettings.KeyCreateNewDesktop])
                SEBDesktopController.SetCurrent(SEBClientInfo.SEBNewlDesktop);

            // Instance a splash form given the image names
            splash = new SEBSplashScreen();
            // Run the form
            Application.Run(splash);
        }
Exemple #10
0
        /// <summary>
        /// Call via separate thread
        /// var thread = new Thread(SEBLoading.StartSplash);
        /// thread.Start();
        /// </summary>
        public static void StartSplash()
        {
            //Set the threads desktop to the new desktop if "Create new Desktop" is activated
            if (SEBClientInfo.SEBNewlDesktop != null && SebInstance.Settings.Get<bool>(SebSettings.KeyCreateNewDesktop))
                SEBDesktopController.SetCurrent(SEBClientInfo.SEBNewlDesktop);
            else
                SEBDesktopController.SetCurrent(SEBClientInfo.OriginalDesktop);

            // Instance a splash form given the image names
            splash = new SEBSplashScreen();
            // Run the form
            Application.Run(splash);
        }