Use consistent pattern for setting header text
This commit is contained in:
parent
d2a54ff0b0
commit
ca53a1d87a
4 changed files with 10 additions and 11 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue