Esempio n. 1
0
 public void Add(DicomSeries newSeries)
 {
     if (newSeries != null)
     {
         SeriesInStudy.Add(newSeries);
     }
 }
Esempio n. 2
0
 public static void SortSeriesList(List <DicomSeries> list)
 {
     list.Sort(delegate(DicomSeries x, DicomSeries y)
     {
         return(DicomSeries.CompareDates(x, y));
     });
 }
Esempio n. 3
0
        public void AddSeries(DicomSeries newSeries)
        {
            if (newSeries == null)
            {
                return;
            }

            SeriesInStudy.Add(newSeries.DicomSeriesDescription);
        }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 5
0
 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));
     }
 }
Esempio n. 6
0
 public void AddSeries(DicomSeries dicomSeries)
 {
     SeriesInStudy.Add(dicomSeries);
     _studyDescriptionDetails.AddSeries(dicomSeries);
 }