예제 #1
0
 public AlarmsService(StatelessServiceContext context,
                      IAlarmsManager alarmsManager,
                      IRulesManager rulesManager,
                      IDevicesManager devicesManager)
     : base(context)
 {
     this.alarmsManager  = alarmsManager;
     this.rulesManager   = rulesManager;
     this.devicesManager = devicesManager;
 }
예제 #2
0
        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);
        }
예제 #3
0
파일: DeviceEditor.cs 프로젝트: xEGOISTx/SH
		internal DeviceEditor(IDevicesManager devicesManager)
		{
			_devicesManager = devicesManager;
		}
예제 #4
0
 public MainModel(IDevicesManager manager)
 {
     this.manager = manager;
 }