public void SetGeneralPanel() { CurrentPanel = tableLayoutMainContentGeneral; tableLayoutLeftMenu.HighLightedButton = tableLayoutLeftMenu.ButtonShowGeneral; tableLayoutRightColumn.Controls.Clear(); tableLayoutRightColumn.Controls.Add(tableLayoutMainContentGeneral); tableLayoutRightColumn.Controls.Add(FlowLayoutBottomButtons); //define bottom buttons FlowLayoutBottomButtons.Controls.Clear(); FlowLayoutBottomButtons.Controls.Add(CreateButton); FlowLayoutBottomButtons.Refresh(); tableLayoutMainContentGeneral.InitData(); }
public int GetSuccessorNumber(int curNr) { IWizardPanel panel = (IWizardPanel)((IDialogPanelDescriptor)wizardPanels[curNr]).DialogPanel; if (panel.IsLastPanel) { return(wizardPanels.Count + 1); } int nextID = GetPanelNumber(panel.NextWizardPanelID); if (nextID < 0) { return(curNr + 1); } return(nextID); }