public void ProcessHotKey(int id) { var hotKey = HotKeys.SingleOrDefault(key => key.Id == id); if (hotKey != null) { HotKeyPressed?.Invoke(hotKey.Service.ServiceName); } }