void sectionLoadComplete_Completed(object sender, EventArgs e) { var loadResult = sender as LoadOperation<MRZS.Web.Models.Section>; currentSection = loadResult.Entities.FirstOrDefault(s => s.IsCurrent); gridCurrentEducation.DataContext = currentSection; //if (currentSection == null) // buttonStartEducation.IsEnabled = false; busyIndicator.IsBusy = false; }
void sectionLoadComplete_Completed(object sender, EventArgs e) { var loadResult = sender as LoadOperation<MRZS.Web.Models.Section>; currentSection = loadResult.Entities.FirstOrDefault(s => s.IsCurrent); int count= loadResult.Entities.Count(); currentSection= loadResult.Entities.DefaultIfEmpty().First(); gridCurrentEducation.DataContext = currentSection; //if (currentSection == null) // buttonStartEducation.IsEnabled = false; busyIndicator.IsBusy = false; //NavigationService.Navigate(new Uri("/Testing/Testing", UriKind.Relative)); //NavigationService.Navigate(new Uri("/Emulator/Emulator-05M", UriKind.Relative)); }