123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Shaker.Models;
- using ShakerApp.ViewModels;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ShakerApp.ViewModels
- {
- public class SweepControlItemViewModel : ViewModelBase<SweepControlItemModel>
- {
- public SweepControlItemViewModel()
- {
- }
- public SweepControlItemViewModel(SweepControlItemModel model)
- {
- UpDateModel(model);
- }
- [PropertyAssociation(nameof(SweepControlItemModel.Frequency))]
- /// <summary>
- /// 频率
- /// </summary>
- public float Frequency { get => Model.Frequency; set => SetProperty(ref Model.Frequency, value); }
- [PropertyAssociation(nameof(SweepControlItemModel.UpDateInvert))]
- /// <summary>
- /// 更新间隔
- /// </summary>
- public uint UpDateInvert { get => Model.UpDateInvert; set => SetProperty(ref Model.UpDateInvert, value); }
- [PropertyAssociation(nameof(SweepControlItemModel.ExponentialCoefficients))]
- /// <summary>
- /// 指数系数
- /// </summary>
- public float ExponentialCoefficients { get => Model.ExponentialCoefficients; set => SetProperty(ref Model.ExponentialCoefficients, value); }
- [PropertyAssociation(nameof(SweepControlItemModel.AdjustMagnitude))]
- /// <summary>
- /// 位移调整系数
- /// </summary>
- public float AdjustMagnitude { get => Model.AdjustMagnitude; set => SetProperty(ref Model.AdjustMagnitude, value); }
- [PropertyAssociation(nameof(SweepControlItemModel.CompressionRate))]
- public float CompressionRate { get => Model.CompressionRate; set => SetProperty(ref Model.CompressionRate, value); }
- }
- }
|