GuiWiget Children working as a SafeList
This commit is contained in:
parent
106db7e7f1
commit
58e77cfe60
40 changed files with 104 additions and 102 deletions
|
|
@ -58,7 +58,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
|
||||
//Construct buttons
|
||||
nextButton = theme.CreateDialogButton("Done".Localize());
|
||||
nextButton.Click += (s, e) => UiThread.RunOnIdle(Parent.Close);
|
||||
nextButton.Click += (s, e) => Parent.Close();
|
||||
nextButton.Visible = false;
|
||||
|
||||
connectButton = theme.CreateDialogButton("Connect".Localize());
|
||||
|
|
@ -177,7 +177,7 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
printerErrorMessage.Text = "Connection succeeded".Localize() + "!";
|
||||
nextButton.Visible = true;
|
||||
connectButton.Visible = false;
|
||||
UiThread.RunOnIdle(() => this?.Parent?.Close());
|
||||
this?.Parent?.Close();
|
||||
}
|
||||
else if (printer.Connection.CommunicationState != CommunicationStates.AttemptingToConnect)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue