public MyAdapterManager() { props = new MyAdapterManagerItemPropertyDescriptor[20]; for (int i = 0; i < props.Length; i++) { props[i] = new MyAdapterManagerItemPropertyDescriptor("Table_" + i, i, this); props[i]._ComponentType = typeof(MyAdapterManager); } }
public MyAdapterManagerItemPropertyDescriptor[] GetProps() { if (tableNames == null) { return(null); } var pr = new MyAdapterManagerItemPropertyDescriptor[tableNames.Length]; for (int i = 0; i < tableNames.Length; i++) { pr[i] = props[i]; } return(pr); }