예제 #1
0
파일: DicomTagPath.cs 프로젝트: nhannd/Xian
 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
 {
     if (value.GetType() == typeof(string))
     {
         DicomTagPath tagPath = new DicomTagPath();
         List<DicomTag> parents;
         DicomTag tag;
         Parse((string)value, out parents, out tag);
         tagPath.Parents = parents;
         tagPath.Tag = tag;
         return tagPath;
     }
     return base.ConvertFrom(context, culture, value);
 }
예제 #2
0
 public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
 {
     if (value.GetType() == typeof(string))
     {
         DicomTagPath    tagPath = new DicomTagPath();
         List <DicomTag> parents;
         DicomTag        tag;
         Parse((string)value, out parents, out tag);
         tagPath.Parents = parents;
         tagPath.Tag     = tag;
         return(tagPath);
     }
     return(base.ConvertFrom(context, culture, value));
 }
		public ImageLevelUpdateEntry()
		{
			TagPath = new DicomTagPath();
		}