|
123456789101112131415161718192021222324252627282930313233343536373839404142 |
-
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using BPA.Helper;
-
-
- namespace BPASmartClient.DosingSystemSingle.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; }
- }
- }
|