|
- using BPA.Helper;
- using System.Collections.ObjectModel;
-
-
- namespace BPASmartClient.DosingSystem.ViewModel
- {
- public class StockControViewModel : NotifyBase
- {
- public StockControViewModel()
- {
- //Task.Factory.StartNew(() =>
- //{
- // App.Current.Dispatcher.Invoke(() =>
- // {
- // for (int i = 0; i < 6; i++)
- // {
- // statusTop.Add(new StockStatusModel { IsFault = false, IsLayOff = true, IsRunning = true, MaterialName = $"{i + 1}号料仓", MaterialWeight = 85 + i });
- // }
- // for (int i = 6; i < 12; i++)
- // {
- // statusDown.Add(new StockStatusModel { IsFault = false, IsLayOff = true, IsRunning = true, MaterialName = $"{i + 1}号料仓", MaterialWeight = 85 + i });
- // }
- // });
- //});
- statusTop = DeviceInquire.GetInstance.TopDeviceCurrentStatuses;
- statusDown = DeviceInquire.GetInstance.BottomDeviceCurrentStatuses;
- }
-
- public bool ConveyerBeltWork { get { return _mConveyerBeltWork; } set { _mConveyerBeltWork = value; OnPropertyChanged(); } }
- private bool _mConveyerBeltWork;
-
- public ObservableCollection<DeviceCurrentStatus> statusTop { get; set; }
- public ObservableCollection<DeviceCurrentStatus> statusDown { get; set; }
- }
- }
|