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