Пример #1
0
        private void CreateClassRow(FastTrackPage page, string typeName, TableRow row)
        {
            TableCell          viewCell = new TableCell();
            ViewTypeLinkButton viewLink = new ViewTypeLinkButton(typeName);

            viewLink.Text = "View";
            row.Cells.Add(viewCell);
            viewCell.Controls.Add(viewLink);
            viewCell.BackColor = this.ForeColor;

            TableCell          editCell = new TableCell();
            EditTypeLinkButton editLink = new EditTypeLinkButton(typeName);

            editLink.Text = "Edit";
            row.Cells.Add(editCell);
            editCell.Controls.Add(editLink);
            editCell.BackColor = this.ForeColor;

            TableCell deleteCell = new TableCell();
            //DeleteTypeLinkButton deleteLink = new DeleteTypeLinkButton(typeName);
            LinkButton deleteLink = new LinkButton();

            deleteLink.Text = "Delete";
            row.Cells.Add(deleteCell);
            deleteCell.Controls.Add(deleteLink);
            deleteCell.BackColor = this.ForeColor;

            TableCell cell  = new TableCell();
            Label     label = new Label();

            label.ForeColor = Color.Black;

            label.Text = typeName;

            row.Cells.Add(cell);
            cell.Controls.Add(label);
            cell.BackColor = this.ForeColor;
        }
Пример #2
0
        private void CreateClassRow(FastTrackPage page, string typeName, TableRow row)
        {
            TableCell viewCell = new TableCell();
            ViewTypeLinkButton viewLink = new ViewTypeLinkButton(typeName);
            viewLink.Text = "View";
            row.Cells.Add(viewCell);
            viewCell.Controls.Add(viewLink);
            viewCell.BackColor = this.ForeColor;

            TableCell editCell = new TableCell();
            EditTypeLinkButton editLink = new EditTypeLinkButton(typeName);
            editLink.Text = "Edit";
            row.Cells.Add(editCell);
            editCell.Controls.Add(editLink);
            editCell.BackColor = this.ForeColor;

            TableCell deleteCell = new TableCell();
            //DeleteTypeLinkButton deleteLink = new DeleteTypeLinkButton(typeName);
            LinkButton deleteLink = new LinkButton();
            deleteLink.Text = "Delete";
            row.Cells.Add(deleteCell);
            deleteCell.Controls.Add(deleteLink);
            deleteCell.BackColor = this.ForeColor;

            TableCell cell = new TableCell();
            Label label = new Label();
            label.ForeColor = Color.Black;

            label.Text = typeName;

            row.Cells.Add(cell);
            cell.Controls.Add(label);
            cell.BackColor = this.ForeColor;
        }