Change ISetupWizard to be IEnumerator<WizardPage>
- Allow for arbitrary navigation in staged wizard window
This commit is contained in:
parent
974a02c04a
commit
61716d98a7
10 changed files with 46 additions and 34 deletions
|
|
@ -59,7 +59,8 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
};
|
||||
loadFilamentButton.Click += (s, e) =>
|
||||
{
|
||||
if(base.setupWizard.GetNextPage() is WizardPage wizardPage)
|
||||
base.setupWizard.MoveNext();
|
||||
if(base.setupWizard.Current is WizardPage wizardPage)
|
||||
{
|
||||
this.DialogWindow.ChangeToPage(wizardPage);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue