Exemple #1
0
 public static void ShowForm()
 {
     if (!isLoaded)
     {
         Instance = new LoadingForm();
         Instance.StartPosition = FormStartPosition.CenterScreen;
         Instance.Show();
         Instance.BringToFront();
     }
     else
     {
         if (Instance.InvokeRequired)
             Instance.Invoke(new voidDelegate(ShowForm));
         else            
             Instance.BringToFront();
     }
 }
Exemple #2
0
 public static void ShowForm()
 {
     if (!isLoaded)
     {
         Instance = new LoadingForm();
         Instance.StartPosition = FormStartPosition.CenterScreen;
         Instance.Show();
         Instance.BringToFront();
     }
     else
     {
         if (Instance.InvokeRequired)
         {
             Instance.Invoke(new voidDelegate(ShowForm));
         }
         else
         {
             Instance.BringToFront();
         }
     }
 }