示例#1
0
        private void btnClaerAll_Click(object sender, EventArgs e)
        {
            BackgroundWorker worker = new BackgroundWorker();

            worker.WorkerSupportsCancellation = true;
            isRunning      = new FrmIsRunning(worker);
            worker.DoWork += new DoWorkEventHandler(showIsRunning);
            worker.RunWorkerAsync();
            isRunning.ShowDialog();
        }
 private void showDialog()
 {
     try
     {
         isRunning = new FrmIsRunning();
         isRunning.ShowDialog();
     }
     catch (Exception ex)
     {
     }
 }
 //FrmIsRunning isRunning;
 private void showDialog()
 {
     try
     {
         FrmIsRunning isRunning = new FrmIsRunning();
         isRunning.ShowDialog();
     }
     catch (ThreadAbortException ex)
     {
     }
     catch (Exception ex)
     {
     }
 }
示例#4
0
 private void showDialog()
 {
     isRunning = new FrmIsRunning();
     isRunning.ShowDialog();
 }