Exemplo n.º 1
0
        private bool PrepareConnection()
        {
            ConnectionForm cf = new ConnectionForm();

            if (cf.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return(false);
            }
            TaskManager.AddAsyncTask(delegate
            {
                SplashScreen.ShowSplashScreen();
            });
            Debug.Assert("Launching Program.");
            SplashScreen.UpdateStatusTextWithStatus("Preparing to connect to the update server...", TypeOfMessage.Warning);
            Thread.Sleep(3000);
            SplashScreen.GetScreen().Progress.Step = 20;
            Program.AppStatus = AppStatus.Connecting;
            SplashScreen.UpdateStatusText("Connecting...");
            SplashScreen.GetScreen().Progress.PerformStep();
            return(true);
        }
Exemplo n.º 2
0
 private bool PrepareConnection()
 {
     ConnectionForm cf = new ConnectionForm();
     if (cf.ShowDialog() != System.Windows.Forms.DialogResult.OK)
     {
         return false;
     }
     TaskManager.AddAsyncTask(delegate
     {
         SplashScreen.ShowSplashScreen();
     });
     Debug.Assert("Launching Program.");
     SplashScreen.UpdateStatusTextWithStatus("Preparing to connect to the update server...", TypeOfMessage.Warning);
     Thread.Sleep(3000);
     SplashScreen.GetScreen().Progress.Step = 20;
     Program.AppStatus = AppStatus.Connecting;
     SplashScreen.UpdateStatusText("Connecting...");
     SplashScreen.GetScreen().Progress.PerformStep();
     return true;
 }