using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using BPA.Helper; using System.Collections.Concurrent; using System.Collections.ObjectModel; using System.Windows; using BPASmartClient.JXJFoodSmallStation.Model; namespace BPASmartClient.JXJFoodSmallStation.ViewModel { public class HardwareStatusViewModel : NotifyBase { public HardwareStatusViewModel() { TopDeviceCurrentStatuses = DeviceInquire.GetInstance.TopDeviceCurrentStatuses; BottomDeviceCurrentStatuses = DeviceInquire.GetInstance.BottomDeviceCurrentStatuses; /*TopDeviceCurrentStatuses = new ObservableCollection(TopDeviceCurrentStatuses.OrderByDescending(item => item.DeviceNum)); BottomDeviceCurrentStatuses = new ObservableCollection(BottomDeviceCurrentStatuses.OrderBy(item => item.DeviceNum));*/ } public ObservableCollection TopDeviceCurrentStatuses { get; set; } public ObservableCollection BottomDeviceCurrentStatuses { get; set; } } }