ReadService.cs 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Prism.Ioc;
  2. using Prism.Modularity;
  3. using S7NetModule.ViewModels;
  4. using S7NetModule.Views;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace S7NetModule.Services
  11. {
  12. public class ReadService
  13. {
  14. private IContainerProvider _container;
  15. private S7ReadlViewModel s7ReadViewModel=new S7ReadlViewModel();
  16. private S7ReadlView s7ReadView;
  17. public S7ReadlViewModel ReadViewModel { get => s7ReadViewModel; set => s7ReadViewModel = value ; }
  18. public S7ReadlView S7ReadView
  19. {
  20. get
  21. {
  22. s7ReadView= _container.Resolve<S7ReadlView>();
  23. return s7ReadView;
  24. }
  25. set => s7ReadView = value;
  26. }
  27. public ReadService(IContainerProvider container)
  28. {
  29. _container= container;
  30. }
  31. public void Run()
  32. {
  33. }
  34. }
  35. }