示例#1
0
        public static void ShowForm(string message = "")
        {
            var t = new Thread(() =>
            {
                CurrentInstance = new WaitingForm();
                if (!string.IsNullOrEmpty(message))
                {
                    CurrentInstance.lblMessage.Text = message;
                }
                CurrentInstance.ShowDialog();
            });

            t.IsBackground = true;
            t.SetApartmentState(ApartmentState.STA);
            t.Start();
        }
示例#2
0
 public static void CloseWait()
 {
     WaitingForm.CloseForm();
 }
示例#3
0
 public static void ShowWait(string message = "")
 {
     WaitingForm.ShowForm(message);
 }