public async Task OpenStudy(string id, bool move) { DeleteFolder(id); if (!move) { var request = DicomQrClient.CreateStudyGetRequest(id); await m_DicomQrClient.RetrieveAsync(request, Save); } else { var request = DicomQrClient.CreateStudyMoveRequest(id, m_Settings.Client.AeTitle); await m_DicomQrClient.RetrieveAsync(request, Save, m_Settings.Client.Port); } OpenFolder(id); }
private async Task OpenStudy() { var study = (DicomStudy)Studies.SelectedItem; RetrievingProgress.Value = 0; RetrievingProgress.Maximum = study.InstanceCount ?? 0; await DoWork(async() => { DeleteFolder(study); if (CGetOption.IsChecked == true) { var request = DicomQrClient.CreateStudyGetRequest(study.Uid); await m_DicomQrClient.RetrieveAsync(request, Save); } else { var request = DicomQrClient.CreateStudyMoveRequest(study.Uid, m_Settings.ClientAeTitle); await m_DicomQrClient.RetrieveAsync(request, Save, m_Settings.ClientPort); } OpenFolder(study); }); }