private void Window_Closed(object sender, EventArgs e) { if (pingSender != null) { pingSender.Cancel(); } }
internal void Cancel() { if (arg == null) { return; } if (arg.Ping) { pingEx.Cancel(); } else if (worker != null) { worker.CancelAsync(); IsCancel = true; } }
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; } }