public void EndProcess(string name) { if (_workers.ContainsKey(name)) { _workers[name].CancelAsync(); ProcessEnded?.Invoke(this, _workers[name]); } }
private void WorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { ProcessEnded?.Invoke(this, sender as BackgroundWorker); }
private void PipeClosed(object sender, EventArgs e) { ProcessEnded?.Invoke(this, null); }
private void Proc_Exited(object sender, EventArgs e) { ProcessEnded?.Invoke(this, new EventArgs()); }