using BPASmartClient.FoodStationTest.Model; using BPA.Helper; using System.Collections.ObjectModel; namespace BPASmartClient.FoodStationTest.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; } } }