void processStopEvent_EventArrived(object sender, EventArrivedEventArgs e) { ProcessStop?.Invoke(this, new ProcessEventArgs { ProcessID = Convert.ToInt32(e.NewEvent.Properties["ProcessID"].Value), ProcessName = e.NewEvent.Properties["ProcessName"].Value.ToString() }); }
public void Stop() { mainProcess?.KillProcessTree(); IsFinished = true; Progress = 0; ProcessStop?.Invoke(this); }
public void MainProc_Exited(object sender, EventArgs e) { IsFinished = true; Progress = 1000; ProcessStop?.Invoke(this); }