Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- using BPASmartClient.FoodStationTest.Model;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using System.Collections.ObjectModel;
-
- namespace BPASmartClient.FoodStationTest.ViewModel
- {
- public class HardwareStatusViewModel : ObservableObject
- {
- public HardwareStatusViewModel()
- {
- TopDeviceCurrentStatuses = DeviceInquire.GetInstance.TopDeviceCurrentStatuses;
-
- BottomDeviceCurrentStatuses = DeviceInquire.GetInstance.BottomDeviceCurrentStatuses;
-
- /*TopDeviceCurrentStatuses = new ObservableCollection<DeviceCurrentStatus>(TopDeviceCurrentStatuses.OrderByDescending(item => item.DeviceNum));
-
- BottomDeviceCurrentStatuses = new ObservableCollection<DeviceCurrentStatus>(BottomDeviceCurrentStatuses.OrderBy(item => item.DeviceNum));*/
- }
-
- public ObservableCollection<DeviceCurrentStatus> TopDeviceCurrentStatuses { get; set; }
-
- public ObservableCollection<DeviceCurrentStatus> BottomDeviceCurrentStatuses { get; set; }
- }
- }
|