Add mechanism to finish stage and move to next best action
This commit is contained in:
parent
c5edf5c761
commit
2c13c1d4b4
2 changed files with 18 additions and 1 deletions
|
|
@ -127,6 +127,20 @@ namespace MatterHackers.MatterControl
|
|||
this.Invalidate();
|
||||
}
|
||||
|
||||
internal void FinishWizard()
|
||||
{
|
||||
ISetupWizard nextStage = stages.FirstOrDefault(s => s.SetupRequired);
|
||||
|
||||
if (nextStage != null)
|
||||
{
|
||||
this.ActiveStage = nextStage;
|
||||
return;
|
||||
}
|
||||
|
||||
// Move to next unfinished wizard or move to summary/home page
|
||||
this.ChangeToPage(homePageGenerator());
|
||||
}
|
||||
|
||||
public override DialogPage ChangeToPage<PanelType>()
|
||||
{
|
||||
return base.ChangeToPage<PanelType>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue