Example #1
0
 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()
     });
 }
Example #2
0
        public void Stop()
        {
            mainProcess?.KillProcessTree();
            IsFinished = true;

            Progress = 0;
            ProcessStop?.Invoke(this);
        }
Example #3
0
 public void MainProc_Exited(object sender, EventArgs e)
 {
     IsFinished = true;
     Progress   = 1000;
     ProcessStop?.Invoke(this);
 }