ShakerConfigViewModel.cs 913 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ShakerService.ViewModel
  7. {
  8. internal sealed class ShakerConfigViewModel:ViewModelBase<Shaker.Models.ShakerConfigModel>
  9. {
  10. private ShakerConfigViewModel():base()
  11. {
  12. }
  13. static ShakerConfigViewModel()
  14. {
  15. }
  16. /// <summary>
  17. /// 位移通道数
  18. /// </summary>
  19. public int DisplacementCount =>CurrentModel.DisplacementCount;
  20. /// <summary>
  21. /// 加速度通道数
  22. /// </summary>
  23. public int AccelerationCount =>CurrentModel.AccelerationCount;
  24. /// <summary>
  25. /// 最大模拟通道数
  26. /// </summary>
  27. public int MaxAICount=>CurrentModel.MaxAICount;
  28. public static ShakerConfigViewModel Instance { get; } = new ShakerConfigViewModel();
  29. }
  30. }