public DeviceConfigsViewModel( [NotNull] ILogger logger, [NotNull] IDeviceConfigurationService configurationService, [NotNull] IDeviceModulesController deviceModulesController, [NotNull] IUiInvoker uiInvoker, [NotNull] ToastNotifications.Notifier notifier, [NotNull] IEventBus eventBus) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _deviceModulesController = deviceModulesController ?? throw new ArgumentNullException(nameof(deviceModulesController)); _uiInvoker = uiInvoker; _notifier = notifier ?? throw new ArgumentNullException(nameof(notifier)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _deviceTypes = new Dictionary <Guid, DeviceTypeInfo>(); _deviceInfos = new Dictionary <Guid, DeviceInfo>(); }
public DeviceConfigCreationViewModel([NotNull] IDeviceModulesController deviceModulesController) { _deviceModulesController = deviceModulesController ?? throw new ArgumentNullException(nameof(deviceModulesController)); }
private static void RegisterSupportedDevices(IDeviceModulesController controller) { controller.RegisterDeviceType(new DeviceTypeModule("Инверсионный стол", InversionTableDeviceTypeId.DeviceTypeId)); controller.RegisterDeviceType(new DeviceTypeModule("Кардиомонитор", MonitorDeviceTypeId.DeviceTypeId)); }