public override void OnNavigatedTo(NavigationContext navigationContext) { ServiceZipList.Clear(); StoresWithCheckList.Clear(); IsServiceBusy = true; _worker.RunWorkerAsync(); }
private void AddServiceZipsWork_Completed(object sender, RunWorkerCompletedEventArgs e) { ZipList = _zipService.GetZips(); RefreshEmptyList(); ServiceZipList.Clear(); IsServiceBusy = false; }
public override void OnNavigatedTo(NavigationContext navigationContext) { ServiceZipList.Clear(); StoresList.Clear(); MonthExpList.Clear(); MonthServExpList.Clear(); ServiceAccountsList.Clear(); IsServiceBusy = true; _worker.RunWorkerAsync(); }
private void LoadSpecification() { ServiceZipList.Clear(); EmptyZipsList.Clear(); NewZipList.Clear(); _reportsController.ShowDialogWindow(); foreach (var serviceZip in _excelSpecificationLoader.GetServiceZips(SelectedCompany, _specFileName, SelectedMonth, SelectedYear).Result) { ServiceZipList.Add(serviceZip); } foreach (var serviceZip in ServiceZipList) { if (!ZipList.Any(z => z.ZipName.ToLower() == serviceZip.ZipName.ToLower())) { if (!NewZipList.Any(e => e.ZipName.ToLower() == serviceZip.ZipName.ToLower())) { NewZipList.Add(new ZipSet { ZipName = serviceZip.ZipName }); } } } }