GuiWiget Children working as a SafeList
This commit is contained in:
parent
106db7e7f1
commit
58e77cfe60
40 changed files with 104 additions and 102 deletions
|
|
@ -119,21 +119,21 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
Margin = new BorderDouble(0, 8),
|
||||
TextColor = theme.TextColor
|
||||
};
|
||||
skipConnectionLink.Click += (s, e) => UiThread.RunOnIdle(() =>
|
||||
skipConnectionLink.Click += (s, e) =>
|
||||
{
|
||||
printer.Connection.HaltConnectionThread();
|
||||
Parent.Close();
|
||||
});
|
||||
};
|
||||
container.AddChild(skipConnectionLink);
|
||||
|
||||
contentRow.AddChild(container);
|
||||
|
||||
//Construct buttons
|
||||
// Construct buttons
|
||||
var nextButton = theme.CreateDialogButton("Continue".Localize());
|
||||
nextButton.Click += (s, e) => UiThread.RunOnIdle(() =>
|
||||
nextButton.Click += (s, e) =>
|
||||
{
|
||||
DialogWindow.ChangeToPage(new SetupStepComPortTwo(printer));
|
||||
});
|
||||
};
|
||||
|
||||
this.AddPageAction(nextButton);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue