Require window title to show, use theme colors
This commit is contained in:
parent
2c8b06203c
commit
499d46a686
3 changed files with 8 additions and 5 deletions
|
|
@ -85,14 +85,14 @@ namespace MatterHackers.MatterControl
|
|||
return wizardWindow;
|
||||
}
|
||||
|
||||
public static DialogWindow Show(IEnumerable<ISetupWizard> stages, Func<DialogPage> homePageGenerator)
|
||||
public static DialogWindow Show(string title, IEnumerable<ISetupWizard> stages, Func<DialogPage> homePageGenerator)
|
||||
{
|
||||
var wizardStages = stages.ToList();
|
||||
var type = homePageGenerator.GetType();
|
||||
|
||||
var homePage = homePageGenerator();
|
||||
|
||||
var wizardWindow = new StagedSetupWizard(stages, homePageGenerator);
|
||||
var wizardWindow = new StagedSetupWizard(title, stages, homePageGenerator);
|
||||
wizardWindow.Closed += (s, e) => allWindows.Remove(type);
|
||||
allWindows[type] = wizardWindow;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue