ActionParamsExtModel.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using Prism.Mvvm;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Collections.ObjectModel;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Team.FFFeederService;
  9. using Team.FFFeederService.Models;
  10. namespace TeamAAS_VP.Models
  11. {
  12. public class ActionParamsExtModel:BindableBase
  13. {
  14. public int ActionIndex { get; set; }
  15. private int _AmplitudeMax;
  16. public int AmplitudeMax
  17. {
  18. get { return _AmplitudeMax; }
  19. set { SetProperty(ref _AmplitudeMax, value); }
  20. }
  21. private int _AmplitudeMin;
  22. public int AmplitudeMin
  23. {
  24. get { return _AmplitudeMin; }
  25. set { SetProperty(ref _AmplitudeMin, value); }
  26. }
  27. private int _FrequencyMax;
  28. public int FrequencyMax
  29. {
  30. get { return _FrequencyMax; }
  31. set { SetProperty(ref _FrequencyMax, value); }
  32. }
  33. private int _FrequencyMin;
  34. public int FrequencyMin
  35. {
  36. get { return _FrequencyMin; }
  37. set { SetProperty(ref _FrequencyMin, value); }
  38. }
  39. private int _Duration;
  40. /// <summary>
  41. /// 持续时长(单位:毫秒)
  42. /// </summary>
  43. public int Duration
  44. {
  45. get { return _Duration; }
  46. set { SetProperty(ref _Duration, value); }
  47. }
  48. public ActionParamsExtModel()
  49. {
  50. }
  51. public ActionParamsExtModel(int actionindex)
  52. {
  53. ActionIndex= actionindex;
  54. }
  55. }
  56. public class FeederFrequencyModel : BindableBase
  57. {
  58. private bool _FeederDirectionInverse;
  59. public bool FeederDirectionInverse
  60. {
  61. get { return _FeederDirectionInverse; }
  62. set { SetProperty(ref _FeederDirectionInverse, value); }
  63. }
  64. private ObservableCollection<ActionParamsExtModel> _FeederFindFrequency=new ObservableCollection<ActionParamsExtModel>();
  65. /// <summary>
  66. /// Feeder自动寻频配置文件
  67. /// </summary>
  68. public ObservableCollection<ActionParamsExtModel> FeederFindFrequency
  69. {
  70. get { return _FeederFindFrequency; }
  71. set { SetProperty(ref _FeederFindFrequency, value); }
  72. }
  73. public FeederFrequencyModel()
  74. {
  75. }
  76. public FeederFrequencyModel(int actionCount)
  77. {
  78. FeederFindFrequency.Clear();
  79. for (int i = 0; i < actionCount; i++)
  80. {
  81. FeederFindFrequency.Add(new ActionParamsExtModel(i));
  82. }
  83. }
  84. }
  85. }