终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
1015 B

  1. using BPASmartClient.FoodStationTest.Model;
  2. using Microsoft.Toolkit.Mvvm.ComponentModel;
  3. using System.Collections.ObjectModel;
  4. namespace BPASmartClient.FoodStationTest.ViewModel
  5. {
  6. public class HardwareStatusViewModel : ObservableObject
  7. {
  8. public HardwareStatusViewModel()
  9. {
  10. TopDeviceCurrentStatuses = DeviceInquire.GetInstance.TopDeviceCurrentStatuses;
  11. BottomDeviceCurrentStatuses = DeviceInquire.GetInstance.BottomDeviceCurrentStatuses;
  12. /*TopDeviceCurrentStatuses = new ObservableCollection<DeviceCurrentStatus>(TopDeviceCurrentStatuses.OrderByDescending(item => item.DeviceNum));
  13. BottomDeviceCurrentStatuses = new ObservableCollection<DeviceCurrentStatus>(BottomDeviceCurrentStatuses.OrderBy(item => item.DeviceNum));*/
  14. }
  15. public ObservableCollection<DeviceCurrentStatus> TopDeviceCurrentStatuses { get; set; }
  16. public ObservableCollection<DeviceCurrentStatus> BottomDeviceCurrentStatuses { get; set; }
  17. }
  18. }