| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- using Prism.Mvvm;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Team.FFFeederService;
- using Team.FFFeederService.Models;
- namespace TeamAAS_VP.Models
- {
- public class ActionParamsExtModel:BindableBase
- {
- public int ActionIndex { get; set; }
- private int _AmplitudeMax;
- public int AmplitudeMax
- {
- get { return _AmplitudeMax; }
- set { SetProperty(ref _AmplitudeMax, value); }
- }
- private int _AmplitudeMin;
- public int AmplitudeMin
- {
- get { return _AmplitudeMin; }
- set { SetProperty(ref _AmplitudeMin, value); }
- }
- private int _FrequencyMax;
- public int FrequencyMax
- {
- get { return _FrequencyMax; }
- set { SetProperty(ref _FrequencyMax, value); }
- }
- private int _FrequencyMin;
- public int FrequencyMin
- {
- get { return _FrequencyMin; }
- set { SetProperty(ref _FrequencyMin, value); }
- }
- private int _Duration;
- /// <summary>
- /// 持续时长(单位:毫秒)
- /// </summary>
- public int Duration
- {
- get { return _Duration; }
- set { SetProperty(ref _Duration, value); }
- }
- public ActionParamsExtModel()
- {
- }
- public ActionParamsExtModel(int actionindex)
- {
- ActionIndex= actionindex;
- }
- }
- public class FeederFrequencyModel : BindableBase
- {
- private bool _FeederDirectionInverse;
- public bool FeederDirectionInverse
- {
- get { return _FeederDirectionInverse; }
- set { SetProperty(ref _FeederDirectionInverse, value); }
- }
- private ObservableCollection<ActionParamsExtModel> _FeederFindFrequency=new ObservableCollection<ActionParamsExtModel>();
- /// <summary>
- /// Feeder自动寻频配置文件
- /// </summary>
- public ObservableCollection<ActionParamsExtModel> FeederFindFrequency
- {
- get { return _FeederFindFrequency; }
- set { SetProperty(ref _FeederFindFrequency, value); }
- }
- public FeederFrequencyModel()
- {
- }
- public FeederFrequencyModel(int actionCount)
- {
- FeederFindFrequency.Clear();
- for (int i = 0; i < actionCount; i++)
- {
- FeederFindFrequency.Add(new ActionParamsExtModel(i));
- }
- }
- }
- }
|