public AlarmsService(StatelessServiceContext context, IAlarmsManager alarmsManager, IRulesManager rulesManager, IDevicesManager devicesManager) : base(context) { this.alarmsManager = alarmsManager; this.rulesManager = rulesManager; this.devicesManager = devicesManager; }
public DevicesViewModel(IDevicesManager devicesManager) { _devicesManager = devicesManager; //DevicePresenterVM = new DevicePresenterViewModel(devicesManager.GetDeviceEditor()); foreach (IDevice device in devicesManager.Devices.Values) { DeviceViewModel deviceVM = new DeviceViewModel(device); Devices.Add(deviceVM); } OnPropertyChanged(nameof(Devices)); FindAndConnect = new RelayCommand(ExecuteFindAndConnect); SendId = new RelayCommand(ExecuteSendId); GetId = new RelayCommand(ExecuteGetId); }
internal DeviceEditor(IDevicesManager devicesManager) { _devicesManager = devicesManager; }
public MainModel(IDevicesManager manager) { this.manager = manager; }