WarningLevel.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Runtime.CompilerServices;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace GDNXFD.Data
  10. {
  11. [Table("WARNINGLEVEL")]
  12. public class WarningLevel : INotifyPropertyChanged
  13. {
  14. [Column("ID")]
  15. public string Id { get; set; }
  16. [Column("LEVELS")]
  17. public int Levels { get; set; }
  18. [Column("COLOR")]
  19. public string Color { get; set; }
  20. [Column("DECRIPTION")]
  21. public string Description { get; set; }
  22. [Column("ICON")]
  23. public string Icon { get; set; }
  24. [Column("SOUND")]
  25. public string Sound { get; set; }
  26. /// <summary>
  27. /// Property changed event
  28. /// </summary>
  29. public event PropertyChangedEventHandler PropertyChanged;
  30. private void RaisePropertyChanged([CallerMemberName] string caller = "")
  31. {
  32. if (PropertyChanged != null)
  33. {
  34. PropertyChanged(this, new PropertyChangedEventArgs(caller));
  35. }
  36. }
  37. }
  38. }