示例#1
0
 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);
     }
 }
示例#2
0
        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);
        }