private async void FindStudies(object sender, RoutedEventArgs e) { var button = (Button)sender; button.Focus(); CreateDicomQrClient(); await DoWork(async() => { var request = DicomQrClient.CreateStudyQueryRequest(StudyQuery); var datasets = await m_DicomQrClient.QueryAsync(request); Studies.ItemsSource = datasets.Select(dataset => new DicomStudy(dataset)).OrderByDescending(study => study.Date); }); }
public async Task <int> GetSeriesCount(string id) { var request = DicomQrClient.CreateSeriesQueryRequest(id, null); var series = await m_DicomQrClient.QueryAsync(request); return(series.Count); }