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 { public SweepControlItemViewModel() { } public SweepControlItemViewModel(SweepControlItemModel model) { UpDateModel(model); } [PropertyAssociation(nameof(SweepControlItemModel.Frequency))] /// /// 频率 /// public float Frequency { get => Model.Frequency; set => SetProperty(ref Model.Frequency, value); } [PropertyAssociation(nameof(SweepControlItemModel.UpDateInvert))] /// /// 更新间隔 /// public uint UpDateInvert { get => Model.UpDateInvert; set => SetProperty(ref Model.UpDateInvert, value); } [PropertyAssociation(nameof(SweepControlItemModel.ExponentialCoefficients))] /// /// 指数系数 /// public float ExponentialCoefficients { get => Model.ExponentialCoefficients; set => SetProperty(ref Model.ExponentialCoefficients, value); } [PropertyAssociation(nameof(SweepControlItemModel.AdjustMagnitude))] /// /// 位移调整系数 /// 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); } } }