Ejemplo n.º 1
0
 public PV6900DevicePanel(
     DeviceStorageService deviceStorageService,
     ProgramDashboardVM programDashboardVM
     )
 {
     Device = deviceStorageService.Get() !;
     _programDashboardVM = programDashboardVM;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Вернуть устройство по  имени устройства.
        /// </summary>
        /// <param name="deviceName">Имя ус-ва, он же ключ к хранилищу</param>
        /// <returns>Верунть ус-во</returns>
        public Device <TIn> GetDevice(string deviceName)
        {
            var device = _deviceStorageService.Get(deviceName);

            return(device);
        }