public void Add(DicomSeries newSeries) { if (newSeries != null) { SeriesInStudy.Add(newSeries); } }
public static void SortSeriesList(List <DicomSeries> list) { list.Sort(delegate(DicomSeries x, DicomSeries y) { return(DicomSeries.CompareDates(x, y)); }); }
public void AddSeries(DicomSeries newSeries) { if (newSeries == null) { return; } SeriesInStudy.Add(newSeries.DicomSeriesDescription); }
public void InitializeFromFile(String fileDetails) { _studyDescriptionDetails = JsonConvert.DeserializeObject <DicomStudyDescription>(fileDetails); foreach (DicomSeriesDescription seriesDesc in _studyDescriptionDetails.SeriesInStudy) { DicomSeries dicomSeries = new DicomSeries("", this, null); dicomSeries.InitializeFromDescription(seriesDesc); SeriesInStudy.Add(dicomSeries); } }
public static int CompareDates(DicomStudy x, DicomSeries y) { if (x.StudyDate == null && y.SeriesDate == null) { return(0); } else if (x.StudyDate == null) { return(1); } else if (y.SeriesDate == null) { return(-1); } else { return(y.SeriesDate.CompareTo(x.StudyDate)); } }
public void AddSeries(DicomSeries dicomSeries) { SeriesInStudy.Add(dicomSeries); _studyDescriptionDetails.AddSeries(dicomSeries); }