Move HeaderText from constructor parameter to WizardPage property

- Improves readability, allows side-by-side with Window title
- Slight increase in overhead due to reconstruction of internal printer
This commit is contained in:
John Lewin 2017-08-24 00:16:31 -07:00
parent 44069d2805
commit 98238aad40
10 changed files with 28 additions and 16 deletions

View file

@ -42,11 +42,11 @@ namespace MatterHackers.MatterControl
private MHTextEditWidget saveAsNameWidget;
public RenameItemPage(string windowTitle, string currentItemName, Action<string> functionToCallToRenameItem)
: base(unlocalizedTextForTitle: windowTitle)
{
this.renameCallback = functionToCallToRenameItem;
this.WindowTitle = windowTitle;
this.HeaderText = windowTitle;
var textBoxHeader = new TextWidget("Name".Localize(), pointSize: 12)
{