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

            SeriesInStudy.Add(newSeries.DicomSeriesDescription);
        }
예제 #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);
     }
 }
예제 #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));
     }
 }
예제 #6
0
 public void AddSeries(DicomSeries dicomSeries)
 {
     SeriesInStudy.Add(dicomSeries);
     _studyDescriptionDetails.AddSeries(dicomSeries);
 }