private void AddControlRow(FastTrackPage page, ArrayList properties, Type type) { int colSpan = properties.Count; if (page.SelectedPropertyName != null && page.SelectedPropertyName != "") { colSpan++; } if (propertyName != null && propertyName != "") { colSpan++; } colSpan += 3; TableRow lastRow = new TableRow(); lastRow.BackColor = Color.White; this.Rows.Add(lastRow); TableCell lastCell = new TableCell(); lastCell.ColumnSpan = colSpan; lastCell.Width = new Unit(100, UnitType.Percentage); lastRow.Controls.Add(lastCell); string typeName = page.GetTypeNameFromType(type); CreateObjectLinkButton createObjectLinkButton = new CreateObjectLinkButton(typeName); lastCell.Controls.Add(createObjectLinkButton); }
private void AddControlRow(FastTrackPage page, ArrayList properties, Type type) { int colSpan = properties.Count; if (page.SelectedPropertyName != null && page.SelectedPropertyName != "") colSpan++; if (propertyName != null && propertyName != "") colSpan++; colSpan += 3; TableRow lastRow = new TableRow(); lastRow.BackColor = Color.White; this.Rows.Add(lastRow); TableCell lastCell = new TableCell(); lastCell.ColumnSpan = colSpan; lastCell.Width = new Unit(100, UnitType.Percentage); lastRow.Controls.Add(lastCell); string typeName = page.GetTypeNameFromType(type); CreateObjectLinkButton createObjectLinkButton = new CreateObjectLinkButton(typeName); lastCell.Controls.Add(createObjectLinkButton); }