public void AddDICOMObject(DICOMObject d) { IDICOMElement id = d.FindFirst(TagHelper.STUDY_ID.CompleteID); if (id != null) { string studyID = (id as ShortString).Data; DICOMFileType type = GetFileType(d); if (!Studies.Exists(s => s.ID == studyID)) { DICOMStudy study = new DICOMStudy(); study.ID = studyID; study.Type = type; Date dt = d.FindFirst(TagHelper.STUDY_DATE.CompleteID) as Date; study.Date = dt.Data; Studies.Add(study); } } }
public void AddDICOMObject(DICOMObject d) { var id = d.FindFirst(TagHelper.StudyID.CompleteID); if (id != null) { var studyID = (id as ShortString).Data; var type = GetFileType(d); if (!Studies.Exists(s => s.ID == studyID)) { var study = new DICOMStudy(); study.ID = studyID; study.Type = type; var dt = d.FindFirst(TagHelper.StudyDate.CompleteID) as Date; study.Date = dt.Data; Studies.Add(study); } } }