diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-13 12:35:21 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-05-13 12:35:21 +0300 |
| commit | e1ca035d2f10626c5b9e48d25acf58f469ee796b (patch) | |
| tree | cc3ca0ca329c9944397c394bd65bf960bd315517 /Software/Visual_Studio/FSE/Tango.FSE.BL | |
| parent | 6284689900fb795dd4b03b4b1d921007f7eb9aa7 (diff) | |
| download | Tango-e1ca035d2f10626c5b9e48d25acf58f469ee796b.tar.gz Tango-e1ca035d2f10626c5b9e48d25acf58f469ee796b.zip | |
Motor Widget!
New Numeric up/down
New Range Slider.
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.BL')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.BL/Services/TechComponentsService.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/TechComponentsService.cs b/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/TechComponentsService.cs index e24c5b876..3c8256ab3 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/TechComponentsService.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.BL/Services/TechComponentsService.cs @@ -19,6 +19,7 @@ namespace Tango.FSE.BL.Services public ReadOnlyEntityRepository<TechController, TechControllerDTO> Controllers { get; private set; } public ReadOnlyEntityRepository<TechHeater, TechHeaterDTO> Heaters { get; private set; } public ReadOnlyEntityRepository<TechValve, TechValveDTO> Valves { get; private set; } + public ReadOnlyEntityRepository<HardwareMotorType, HardwareMotorTypeDTO> Motors { get; private set; } public TechComponentsService() { @@ -63,6 +64,13 @@ namespace Tango.FSE.BL.Services DataResolverNode.InMemoryCache, DataResolverNode.DiskCache, DataResolverNode.Online); + + Motors = new ReadOnlyEntityRepository<HardwareMotorType, HardwareMotorTypeDTO>( + x => x.ToObservable(), + x => HardwareMotorTypeDTO.FromObservable(x), + DataResolverNode.InMemoryCache, + DataResolverNode.DiskCache, + DataResolverNode.Online); } public async Task Preload() @@ -73,6 +81,7 @@ namespace Tango.FSE.BL.Services await Controllers.FindAll(); await Heaters.FindAll(); await Valves.FindAll(); + await Motors.FindAll(); } } } |
