MeasurementEntity.cs 769 B

1234567891011121314151617181920212223242526272829303132
  1. using CommunityToolkit.Mvvm.ComponentModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ivf_tl_Entity.Entity
  8. {
  9. public partial class MeasurementEntity : ObservableObject
  10. {
  11. public int Num { get; set; }
  12. [ObservableProperty]
  13. private int measurementValue = -1;
  14. [ObservableProperty]
  15. private string measurementString = null;
  16. partial void OnMeasurementValueChanged(int value)
  17. {
  18. if (value == -1)
  19. {
  20. MeasurementString = "";
  21. }
  22. else
  23. {
  24. MeasurementString = value.ToString();
  25. }
  26. }
  27. }
  28. }