Example #1
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);
 }
Example #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();
		}