public void GetFrames(IList studyList) { int[] studyIdArray = (from object study in studyList select ((Vysetrenie)study).IdVysetrenia).ToArray(); _laboratoryDomainContext.Load(_laboratoryDomainContext.GetFramesByStudiesQuery(studyIdArray), true).Completed += (sender, args) => { var pagedCollectionView = new PagedCollectionView(((LoadOperation<DicomFrameDto>)sender).Entities); pagedCollectionView.GroupDescriptions.Add(new PropertyGroupDescription("DicomFile.Vysetrenie.IdentifikacneUdaje.RodCislo")); pagedCollectionView.MoveCurrentTo(null); Frames = pagedCollectionView; NotifyOfPropertyChange("Frames"); }; }
public void GetStudies(IList patientList) { int[] patientIdArray = (from object patient in patientList select ((IdentifikacneUdaje)patient).OsCislo).ToArray(); _laboratoryDomainContext.Load(_laboratoryDomainContext.GetStudiesByPatientsQuery(patientIdArray), true).Completed += (sender, args) => { var pagedCollectionView = new PagedCollectionView(((LoadOperation<Vysetrenie>)sender).Entities); pagedCollectionView.GroupDescriptions.Add(new PropertyGroupDescription("IdentifikacneUdaje.RodCislo")); pagedCollectionView.MoveCurrentTo(null); Studies = pagedCollectionView; NotifyOfPropertyChange("Studies"); }; }