TimeDomainMenuViewModel.cs 882 B

123456789101112131415161718192021
  1. using IViewModel.Tools;
  2. using Shaker.Model;
  3. using Shaker.Models;
  4. namespace Dynamicloadsimulationdevice.ViewModels
  5. {
  6. public sealed class TimeDomainMenuViewModel: CommunityToolkit.Mvvm.ComponentModel.ObservableObject
  7. {
  8. private ResultChannelType analogType = ResultChannelType.ActualDisplacement;
  9. private bool isEnabled = true;
  10. private string unit = string.Empty;
  11. private bool isChecked = false;
  12. public ResultChannelType AnalogType { get => analogType; set =>SetProperty(ref analogType , value); }
  13. public bool IsEnabled { get => isEnabled; set =>SetProperty(ref isEnabled , value); }
  14. public string Key => AnalogType.Description();
  15. public string Unit { get => unit; set =>SetProperty(ref unit , value); }
  16. public bool IsChecked { get => isChecked; set =>SetProperty(ref isChecked , value); }
  17. }
  18. }