PointInfo.cs 693 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.Json.Serialization;
  7. using System.Threading.Tasks;
  8. namespace NEIntelligentControl2.Models.Windturbine
  9. {
  10. public class PointInfo : INotifyPropertyChanged
  11. {
  12. public string PointName { get; set; }
  13. public string TagName { get; set; }
  14. private double pointValue;
  15. [JsonIgnore]
  16. public double PointValue { get => pointValue; set { pointValue = Math.Round(value, 2); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("PointValue")); } }
  17. public event PropertyChangedEventHandler PropertyChanged;
  18. }
  19. }