public void Initialize()
        {
            if (initialized)
                return;
            initialized = true;

            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                TableRow row1 = new TableRow();
                this.Rows.Add(row1);
                TableCell linkCell = new TableCell();
                row1.Cells.Add(linkCell);
                linkCell.ColumnSpan = 3;

                TableRow row2 = new TableRow();
                this.Rows.Add(row2);

                TableCell selectCell = new TableCell();
                TableCell removeCell = new TableCell();
                TableCell deleteCell = new TableCell();
                row2.Cells.Add(selectCell);
                row2.Cells.Add(removeCell);
                row2.Cells.Add(removeCell);

                ObjectLink link = new ObjectLink(propertyName);
                linkCell.Controls.Add(link);

                SelectObjectLinkButton selectLink = new SelectObjectLinkButton(this.propertyName);
                selectCell.Controls.Add(selectLink);
            }
        }
Esempio n. 2
0
        public void Initialize()
        {
            if (initialized)
            {
                return;
            }
            initialized = true;

            FastTrackPage page = this.Page as FastTrackPage;

            if (page != null)
            {
                TableRow row1 = new TableRow();
                this.Rows.Add(row1);
                TableCell linkCell = new TableCell();
                row1.Cells.Add(linkCell);
                linkCell.ColumnSpan = 3;

                TableRow row2 = new TableRow();
                this.Rows.Add(row2);

                TableCell selectCell = new TableCell();
                TableCell removeCell = new TableCell();
                TableCell deleteCell = new TableCell();
                row2.Cells.Add(selectCell);
                row2.Cells.Add(removeCell);
                row2.Cells.Add(removeCell);

                ObjectLink link = new ObjectLink(propertyName);
                linkCell.Controls.Add(link);

                SelectObjectLinkButton selectLink = new SelectObjectLinkButton(this.propertyName);
                selectCell.Controls.Add(selectLink);
            }
        }