终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

HardwareStatusViewModel.cs 982 B

1 yıl önce
1 yıl önce
123456789101112131415161718192021222324
  1. using BPASmartClient.FoodStationTest.Model;
  2. using BPA.Helper;
  3. using System.Collections.ObjectModel;
  4. namespace BPASmartClient.FoodStationTest.ViewModel
  5. {
  6. public class HardwareStatusViewModel : NotifyBase
  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. }