private void RaiseProcessStatusesChangedEvent(IEnumerable <DTOProcessStatus> processStatuses) { ProcessStatusesChanged?.Invoke(this, new ProcessStatusesEventArgs(processStatuses.Select(x => x.FromDTO(Machine)).ToList())); }
private void RaiseProcessStatusesChangedEvent(List <ProcessStatus> processStatuses) { ProcessStatusesChanged?.Invoke(this, new ProcessStatusesEventArgs(processStatuses, _processStatusListeners.Where(x => x.Value).Select(x => x.Key).ToArray())); }