Beispiel #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));
 }
Beispiel #2
0
 public BindedControl[] GetValues()
 {
     BindedControl[] bc = new BindedControl[this.InnerList.Count];
     this.InnerList.CopyTo(0, bc, 0, this.InnerList.Count);
     return(bc);
 }
Beispiel #3
0
 public void Remove(BindedControl value)
 {
     this.InnerList.Remove(value);
 }
Beispiel #4
0
 public bool Contains(BindedControl value)
 {
     return(this.InnerList.Contains(value));
 }
Beispiel #5
0
 public BindedControl Add(BindedControl value)
 {
     this.InnerList.Add(value);
     return(value);
 }