Use consistent pattern for setting header text

This commit is contained in:
John Lewin 2017-08-23 23:33:28 -07:00
parent d2a54ff0b0
commit ca53a1d87a
4 changed files with 10 additions and 11 deletions

View file

@ -11,8 +11,8 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
public class ConnectionWizardPage : WizardPage
{
// TODO: It would seem that only one of these pages that derives from ConnectionWizardPage needs to abort a connect attempt... *************************************
public ConnectionWizardPage(string unlocalizedTextForCancelButton = "Cancel")
: base (unlocalizedTextForCancelButton: unlocalizedTextForCancelButton)
public ConnectionWizardPage(string unlocalizedTextForCancelButton = "Cancel", string unlocalizedTextForTitle = "Setup Wizard")
: base (unlocalizedTextForCancelButton: unlocalizedTextForCancelButton, unlocalizedTextForTitle: unlocalizedTextForTitle)
{
cancelButton.Click += (s, e) => PrinterConnection.Instance.HaltConnectionThread();
}

View file

@ -23,8 +23,8 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
private Button skipButton;
public SetupStepInstallDriver()
: base (unlocalizedTextForTitle: "Install Communication Driver")
{
headerLabel.Text = string.Format("Install Communication Driver".Localize());
printerDriverContainer = createPrinterDriverContainer();
contentRow.AddChild(printerDriverContainer);
{