using Shaker.Models; using ShakerApp.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShakerApp.ViewModels { public class StatisticsViewModel:DisplayViewModelBase { public StatisticsViewModel():base() { } public StatisticsViewModel(StatisticsModel model):base(model) { } [PropertyAssociation(nameof(StatisticsModel.Name))] public string Name { get => Model.Name; set =>SetProperty(ref Model.Name , value); } [PropertyAssociation(nameof(StatisticsModel.Max))] public float Max { get => Model.Max; set =>SetProperty(ref Model.Max , value); } [PropertyAssociation(nameof(StatisticsModel.Min))] public float Min { get => Model.Min; set =>SetProperty(ref Model.Min, value); } [PropertyAssociation(nameof(StatisticsModel.RMS))] public float RMS { get => Model.RMS; set =>SetProperty(ref Model.RMS , value); } [PropertyAssociation(nameof(StatisticsModel.Average))] public float Average { get => Model.Average; set => SetProperty(ref Model.Average, value); } [PropertyAssociation(nameof(StatisticsModel.Unit))] public string Unit { get => Model.Unit; set =>SetProperty(ref Model.Unit , value); } public override void UpDateModel(StatisticsModel model) { base.UpDateModel(model); } } }