public Boolean setExitstsProp(TableProp property) { for (int i = 0; i < this.props.Count; i++) { if (this.props[i].assignedTable == property.assignedTable) { this.props[i] = property; return(true); } } return(false); }
public void setTableProp(TableProp property) { TableProp tmpProp = this.getProp(property.assignedTable); if (tmpProp != null) { if (!this.setExitstsProp(property)) { throw new Exception("Failed to set property "); } } else { this.props.Add(property); } }