Exemple #1
0
 public void CloseForm()
 {
     if (waitThread != null)
     {
         try
         {
             ////
             waitFM.SetText("close");
             //waitThread.Abort();
             waitThread = null;
             waitFM     = null;
         }
         catch (Exception)
         {
         }
     }
 }
Exemple #2
0
        public void CreateForm(string text)
        {
            if (waitThread != null)
            {
                try
                {
                    //waitThread.Abort();
                    waitThread = null;
                    waitFM     = null;
                }
                catch (Exception)
                {
                }
            }

            waitThread = new Thread(new ThreadStart(delegate()
            {
                waitFM = new waitForm(text);
                System.Windows.Forms.Application.Run(waitFM);
            }));
            waitThread.Start();
        }