Exemplo n.º 1
0
 public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
 {
     if (destinationType == typeof(InstanceDescriptor))
     {
         BindedControl   bc    = (BindedControl)value;
         ConstructorInfo cInfo = typeof(BindedControl).GetConstructor(new Type[] { typeof(Control) });
         if (cInfo != null)
         {
             return(new InstanceDescriptor(cInfo, new object[] { bc.Control }, true));
         }
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }
Exemplo n.º 2
0
 public BindedControl[] GetValues()
 {
     BindedControl[] bc = new BindedControl[this.InnerList.Count];
     this.InnerList.CopyTo(0, bc, 0, this.InnerList.Count);
     return(bc);
 }
Exemplo n.º 3
0
 public void Remove(BindedControl value)
 {
     this.InnerList.Remove(value);
 }
Exemplo n.º 4
0
 public bool Contains(BindedControl value)
 {
     return(this.InnerList.Contains(value));
 }
Exemplo n.º 5
0
 public BindedControl Add(BindedControl value)
 {
     this.InnerList.Add(value);
     return(value);
 }