void ITemplate.InstantiateIn(Control container) { this._wizard._defaultCreateUserNavigationTemplate = this; container.EnableViewState = false; Table child = CreateUserWizard.CreateTable(); child.CellSpacing = 5; child.CellPadding = 5; container.Controls.Add(child); TableRow row = new TableRow(); this._row = row; row.PreventAutoID(); row.HorizontalAlign = HorizontalAlign.Right; child.Rows.Add(row); this._buttons = new IButtonControl[][] { new IButtonControl[3], new IButtonControl[3], new IButtonControl[3] }; this._innerCells = new TableCell[] { this.CreateButtonControl(this._buttons[0], this._wizard.ValidationGroup, Wizard.StepPreviousButtonID, false, Wizard.MovePreviousCommandName), this.CreateButtonControl(this._buttons[1], this._wizard.ValidationGroup, Wizard.StepNextButtonID, true, Wizard.MoveNextCommandName), this.CreateButtonControl(this._buttons[2], this._wizard.ValidationGroup, Wizard.CancelButtonID, false, Wizard.CancelCommandName) }; }
void ITemplate.InstantiateIn(Control container) { _wizard._defaultCreateUserNavigationTemplate = this; container.EnableViewState = false; Table table = CreateTable(); table.CellSpacing = 5; table.CellPadding = 5; container.Controls.Add(table); TableRow tableRow = new TableRow(); _row = tableRow; tableRow.PreventAutoID(); tableRow.HorizontalAlign = HorizontalAlign.Right; table.Rows.Add(tableRow); _buttons = new IButtonControl[3][]; _buttons[0] = new IButtonControl[3]; _buttons[1] = new IButtonControl[3]; _buttons[2] = new IButtonControl[3]; _innerCells = new TableCell[3]; _innerCells[0] = CreateButtonControl(_buttons[0], _wizard.ValidationGroup, Wizard.StepPreviousButtonID, false, Wizard.MovePreviousCommandName); _innerCells[1] = CreateButtonControl(_buttons[1], _wizard.ValidationGroup, Wizard.StepNextButtonID, true, Wizard.MoveNextCommandName); _innerCells[2] = CreateButtonControl(_buttons[2], _wizard.ValidationGroup, Wizard.CancelButtonID, false, Wizard.CancelCommandName); }