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