public SetupStepInstallDriver() { headerLabel.Text = string.Format(LocalizedString.Get("Install Communication Driver")); printerDriverContainer = createPrinterDriverContainer(); contentRow.AddChild(printerDriverContainer); { //Construct buttons installButton = textImageButtonFactory.Generate(LocalizedString.Get("Install Driver")); installButton.Click += (sender, e) => { UiThread.RunOnIdle(() => { bool canContinue = this.InstallDriver(); if (canContinue) { WizardWindow.ChangeToSetupBaudOrComPortOne(); } }); }; skipButton = textImageButtonFactory.Generate(LocalizedString.Get("Skip")); skipButton.Click += (s, e) => WizardWindow.ChangeToSetupBaudOrComPortOne(); //Add buttons to buttonContainer footerRow.AddChild(installButton); footerRow.AddChild(skipButton); footerRow.AddChild(new HorizontalSpacer()); footerRow.AddChild(cancelButton); } }