TimeDomainMenuViewModel.cs 839 B

123456789101112131415161718192021
  1. using Shaker.Models;
  2. using ShakerApp.Models;
  3. using ShakerApp.Tools;
  4. namespace ShakerApp.ViewModels
  5. {
  6. public sealed class TimeDomainMenuViewModel: CommunityToolkit.Mvvm.ComponentModel.ObservableObject
  7. {
  8. private AnalogType analogType = AnalogType.Displacement;
  9. private bool isEnabled = true;
  10. private string unit = string.Empty;
  11. private bool isChecked = false;
  12. public AnalogType 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. }