Require window title to show, use theme colors

This commit is contained in:
jlewin 2019-03-20 16:27:39 -07:00
parent 2c8b06203c
commit 499d46a686
3 changed files with 8 additions and 5 deletions

View file

@ -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;