public override void OnNavigatedTo(NavigationContext navigationContext)
 {
     ServiceZipList.Clear();
     StoresWithCheckList.Clear();
     IsServiceBusy = true;
     _worker.RunWorkerAsync();
 }
Ejemplo n.º 2
0
 private void AddServiceZipsWork_Completed(object sender, RunWorkerCompletedEventArgs e)
 {
     ZipList = _zipService.GetZips();
     RefreshEmptyList();
     ServiceZipList.Clear();
     IsServiceBusy = false;
 }
Ejemplo n.º 3
0
 public override void OnNavigatedTo(NavigationContext navigationContext)
 {
     ServiceZipList.Clear();
     StoresList.Clear();
     MonthExpList.Clear();
     MonthServExpList.Clear();
     ServiceAccountsList.Clear();
     IsServiceBusy = true;
     _worker.RunWorkerAsync();
 }
Ejemplo n.º 4
0
 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
                 });
             }
         }
     }
 }