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(); } }
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(); } } }