Пример #1
0
 private void Window_Closed(object sender, EventArgs e)
 {
     if (pingSender != null)
     {
         pingSender.Cancel();
     }
 }
Пример #2
0
 internal void Cancel()
 {
     if (arg == null)
     {
         return;
     }
     if (arg.Ping)
     {
         pingEx.Cancel();
     }
     else if (worker != null)
     {
         worker.CancelAsync();
         IsCancel = true;
     }
 }
Пример #3
0
        internal void Cancel()
        {
            if (arg == null)
            {
                return;
            }
            if (arg.Ping)
            {
                pingEx.Cancel();
            }
            //else if(worker!=null)
            //{
            //    worker.CancelAsync();
            //    IsCancel = true;
            //}

            else if (udpscanWorker != null)
            {
                udpscanWorker.Stop();
                IsCancel = true;
            }
        }