public override void OnNavigatedTo(NavigationContext navigationContext) { ServiceZipList.Clear(); StoresList.Clear(); MonthExpList.Clear(); MonthServExpList.Clear(); ServiceAccountsList.Clear(); IsServiceBusy = true; _worker.RunWorkerAsync(); }
private void LoadServiceZip_Completed(object sender, RunWorkerCompletedEventArgs e) { IsServiceBusy = false; foreach (var exp in GetMonthExpList()) { MonthExpList.Add(exp); } var list = GetServiceExp(); foreach (var ser in list) { if (ser.MonthYear >= new DateTime(2015, 1, 1)) { MonthServExpList.Add(ser); } } }