private void NextButton_Click(object sender, System.EventArgs e) { PanelDesc.WizardSteps next = PanelDesc.WizardSteps.ERROR; history.Add(CurrentStep); next = PanelDesc.Panel(CurrentStep).nextClicked(); if (next == PanelDesc.WizardSteps.ERROR) { return; } ClearCurrentPanel(); CurrentStep = next; DrawCurrentPanel(); }
private void ClearCurrentPanel() { PanelDesc.Panel(CurrentStep).clearContents(); }
private void DrawCurrentPanel() { PanelDesc.Panel(CurrentStep).drawContents(); }