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