Set protected windowTitle in constructor
This commit is contained in:
parent
9d1170f118
commit
c85cd950d6
5 changed files with 29 additions and 28 deletions
|
|
@ -31,7 +31,6 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using Markdig.Agg;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Localizations;
|
||||
|
|
@ -45,6 +44,16 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
{
|
||||
private int extruderIndex;
|
||||
|
||||
public UnloadFilamentWizard(PrinterConfig printer, int extruderIndex)
|
||||
: base(printer)
|
||||
{
|
||||
windowTitle = $"{ApplicationController.Instance.ProductName} - " + "Unload Filament Wizard".Localize();
|
||||
pages = this.GetPages();
|
||||
pages.MoveNext();
|
||||
|
||||
this.extruderIndex = extruderIndex;
|
||||
}
|
||||
|
||||
public static void Start(PrinterConfig printer, ThemeConfig theme, int extruderIndex)
|
||||
{
|
||||
// turn off print leveling
|
||||
|
|
@ -57,15 +66,6 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
};
|
||||
}
|
||||
|
||||
public UnloadFilamentWizard(PrinterConfig printer, int extruderIndex)
|
||||
: base(printer)
|
||||
{
|
||||
pages = this.GetPages();
|
||||
pages.MoveNext();
|
||||
|
||||
this.extruderIndex = extruderIndex;
|
||||
}
|
||||
|
||||
private IEnumerator<WizardPage> GetPages()
|
||||
{
|
||||
var extruderCount = printer.Settings.GetValue<int>(SettingsKey.extruder_count);
|
||||
|
|
@ -82,7 +82,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
// select the material
|
||||
yield return new SelectMaterialPage(this, title, instructions, "Unload".Localize(), extruderIndex, false, false)
|
||||
{
|
||||
WindowTitle = $"{ApplicationController.Instance.ProductName} - " + "Unload Filament Wizard".Localize()
|
||||
WindowTitle = windowTitle
|
||||
};
|
||||
|
||||
var theme = ApplicationController.Instance.Theme;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue