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:
parent
44069d2805
commit
98238aad40
10 changed files with 28 additions and 16 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue