/// <summary> /// 生成伪属性字段 /// </summary> private void GenerateFakeProperties() { for (int i = 0; i < m_WrappedTable.Fields.FieldCount; i++) { ClsFieldPropertyDescriptor newPropertyDesc = new ClsFieldPropertyDescriptor(m_WrappedTable, m_WrappedTable.Fields.get_Field(i).Name, i); m_PropertiesList.Add(newPropertyDesc); } }
public ClsTableWrapper(IFields fields) { m_WorkspaceEdit = null; //m_WrappedTable = table; for (int i = 0; i < fields.FieldCount; i++) { ClsFieldPropertyDescriptor newPropertyDesc = new ClsFieldPropertyDescriptor(fields, fields.get_Field(i).Name, i); m_PropertiesList.Add(newPropertyDesc); } AllowNew = true; AllowRemove = true; }