DeviceCollection.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using CommunityToolkit.Mvvm.ComponentModel;
  2. using GeneralData;
  3. using System.Collections.ObjectModel;
  4. using UICommon.DataType;
  5. namespace GlobalData;
  6. public partial class DeviceCollection : ObservableObject
  7. {
  8. [ObservableProperty]
  9. private ObservableDictionary<DeviceModel, ObservableCollection<DeviceInfo_VM>> _Devices = [];
  10. //[ObservableProperty]
  11. //private ObservableDictionary<Guid, DeviceInfo_VM> _RawDevices = [];
  12. }
  13. public partial class DeviceInfo_VM : ObservableObject
  14. {
  15. [ObservableProperty]
  16. private DeviceModel _DeviceModel;
  17. [ObservableProperty]
  18. private string? _DeviceSubModel;
  19. [ObservableProperty]
  20. private string? _DeviceName;
  21. [ObservableProperty]
  22. private string? _Position;
  23. [ObservableProperty]
  24. private string? _SoftwareVersion;
  25. [ObservableProperty]
  26. private Guid? _Guid;
  27. [ObservableProperty]
  28. private string? _IP;
  29. [ObservableProperty]
  30. private ushort _Port;
  31. [ObservableProperty]
  32. private string? _DBConnectionString;
  33. [ObservableProperty]
  34. private DateTime _UpdateTime;
  35. }