예제 #1
0
        private async Task UpdateProcessingList()
        {
            await Task.Delay(100);

            // TODO
            processingList = new ObservableCollection <DeliveryListViewModel>();
            processingList.Add(new DeliveryListViewModel()
            {
                GUID        = "sicnwilx13123x",
                Name        = "消毒水(500ml)",
                Quantity    = 5,
                Departure   = "a仓库",
                Destination = "xx小区",
                StartTime   = DateTime.Now
            });
            processingList.Add(new DeliveryListViewModel()
            {
                GUID        = "wiucndsin2341s",
                Name        = "医用酒精(500ml)",
                Quantity    = 100,
                Departure   = "yy小区",
                Destination = "b仓库",
                StartTime   = DateTime.Now
            });
            //
            userProcessingList.ItemsSource = processingList;
            ListCount c = new ListCount();

            c.ProcessingCount = processingList.Count;
            userProcessingCount.DataContext = c;
        }
예제 #2
0
        public OverviewPage()
        {
            InitializeComponent();
            processingList = new ObservableCollection <DeliveryListViewModel>();
            waitingList    = new ObservableCollection <DeliveryListViewModel>();
            listCount      = new ListCount();

            userProcessingList.ItemsSource  = processingList;
            userWaitingList.ItemsSource     = waitingList;
            userProcessingCount.DataContext = listCount;
            userWaitingCount.DataContext    = listCount;
        }