Example #1
0
        public static void ShowForm(string message, bool closeOnClick)
        {
            if (Instance != null)
            {
                return;
            }

            if (SyncContext == null)
            {
                SyncContext = SynchronizationContext.Current;
            }
            SyncContext.Send(s => Instance = new WaitingForm2(message, closeOnClick), null);
            SyncContext.Post(state => Instance.ShowDialog(), null);
        }
Example #2
0
 public static void CloseWait2()
 {
     WaitingForm2.CloseForm();
 }
Example #3
0
 public static void ShowWait2(string message = "", bool closeOnClick = false)
 {
     WaitingForm2.ShowForm(message, closeOnClick);
 }