Exemplo n.º 1
0
 private void StartTimer_Tick(object sender, System.EventArgs e)
 {
     if (mainForm == null)
     {
         StartTimer.Stop();
         InitializeMainForm();
         StartTimer.Start();
     }
     else
     {
         SplashProgressBar.Position = 100;
         StartTimer.Stop();
         mainForm.Show();
     }
 }
Exemplo n.º 2
0
 private void StartTimer_Tick(object sender, System.EventArgs e)
 {
     if (mainForm == null)
     {
         StartTimer.Stop();
         if (InitializeMainForm())
         {
             StartTimer.Start();
         }
         else
         {
             Application.Exit();
         }
     }
     else
     {
         SplashProgressBar.Value = 100;
         StartTimer.Stop();
         mainForm.Show();
     }
 }