Exemple #1
0
 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
 {
     if (typeof(string).Equals(destinationType))
     {
         DrawingLayerHeader k = value as DrawingLayerHeader;
         if (k != null)
         {
             return(k.LayerId.ToString() + ";" + k.Visible.ToString() + ";" + k.Name);
         }
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }
 public DrawingLayer(DrawingLayerHeader header)
 {
     _layerId = header.LayerId;
     _name    = header.Name;
     _visible = header.Visible;
 }
 public DrawingControlLayer(DrawingLayerHeader header)
 {
     LayerId = header.LayerId;
 }