private void ExecuteForceUnloadCommand()
        {
            //iterate through modules and execute force unload
            var snsOnTruck = AggregateDataProvider.SerialNumbersOnTruck.ToArray();

            foreach (var moduleVM in ListModules.Where(m => m.Selected && snsOnTruck.Any(s => s == m.SerialNumber)))
            {
                AggregateDataProvider.ForceUnload(moduleVM.SerialNumber);
            }

            LoadData(ListID);
        }
Exemplo n.º 2
0
        private void ExecuteForceUnloadCommand()
        {
            //iterate through modules and execute force unload

            foreach (var moduleVM in ModulesOnTruck.Where(m => m.Selected))
            {
                AggregateDataProvider.ForceUnload(moduleVM.SerialNumber);
            }


            _windowService.CloseModalWindow(WindowType.UnloadCorrectionWindow);
            Messenger.Default.Send <ManualUnloadCorrectionMessage>(new ManualUnloadCorrectionMessage());
        }