==================================MasterTableCollectionEditor.cs
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Reflection;namespace HypHappy.WebInfopath
{
/// <summary>
/// MasterTableCollectionEditor 的摘要说明。
/// </summary>
public class MasterTableCollectionEditor:CollectionEditor
{
private Type[] types; 
public MasterTableCollectionEditor(Type type):base(type)
{
types = new Type[]{typeof(MasterTable)};
}
protected override Type [] CreateNewItemTypes()
{

return types;
}
}
}