private void SetStepsAndDataBindSideBarList(IWizardSideBarListControl sideBarList) { if (sideBarList != null) { sideBarList.DataSource = WizardSteps; sideBarList.SelectedIndex = ActiveStepIndex; sideBarList.DataBind(); } }
protected void CreateControlHierarchy_CleanUpOldSideBarList(IWizardSideBarListControl sideBarList) { // Remove obsolete events from sideBarDataList if (sideBarList != null) { sideBarList.ItemCommand -= new CommandEventHandler(Owner.DataListItemCommand); sideBarList.ItemDataBound -= new EventHandler<WizardSideBarListControlItemEventArgs>(Owner.DataListItemDataBound); } }
protected void CreateControlHierarchy_CleanUpOldSideBarList(IWizardSideBarListControl sideBarList) { if (sideBarList != null) { sideBarList.ItemCommand -= new CommandEventHandler(this.Owner.DataListItemCommand); Wizard owner = this.Owner; sideBarList.ItemDataBound -= new EventHandler<WizardSideBarListControlItemEventArgs>(owner.DataListItemDataBound); } }