private void Machine_MachineStopped(object sender, MachineStoppedEventArgs e) { var args = new ThreadStoppedEventArgs { Machine = (MachineInstance)sender, ThreadId = e.ThreadId, StopReason = e.Reason }; ThreadStopped?.Invoke(this, args); }
private void OnThreadFinished() { ThreadStopped?.Invoke(this); }