private void ExecuteLoadCommand() { //iterate through modules and execute force unload foreach (var moduleVM in ListModules.Where(m => m.Selected)) { AggregateDataProvider.ForceLoad(moduleVM.SerialNumber); } LoadData(ListID); }
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); }