improving connect procedure
This commit is contained in:
parent
de77575fd2
commit
35ef85b73e
16 changed files with 200 additions and 186 deletions
|
|
@ -45,13 +45,8 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
private GuiWidget refreshButton;
|
||||
private GuiWidget printerComPortHelpLink;
|
||||
|
||||
private bool printerComPortIsAvailable = false;
|
||||
|
||||
private TextWidget printerComPortHelpMessage;
|
||||
private TextWidget printerComPortError;
|
||||
|
||||
private List<SerialPortIndexRadioButton> serialPortButtonsList = new List<SerialPortIndexRadioButton>();
|
||||
|
||||
private PrinterConfig printer;
|
||||
|
||||
public SetupStepComPortManual(PrinterConfig printer)
|
||||
|
|
@ -181,6 +176,13 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
AutoExpandBoundsToText = true
|
||||
};
|
||||
|
||||
var printerComPortHelpMessage = new TextWidget("The 'Serial Port' section lists all available serial\nports on your device. Changing which USB port the printer\nis connected to may change the associated serial port.\n\nTip: If you are uncertain, unplug/plug in your printer\nand hit refresh. The new port that appears should be\nyour printer.".Localize(), 0, 0, 10)
|
||||
{
|
||||
TextColor = theme.TextColor,
|
||||
Margin = new BorderDouble(top: 10),
|
||||
Visible = false
|
||||
};
|
||||
|
||||
printerComPortHelpLink = new LinkLabel("What's this?".Localize(), theme)
|
||||
{
|
||||
Margin = new BorderDouble(left: 5),
|
||||
|
|
@ -188,13 +190,6 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections
|
|||
};
|
||||
printerComPortHelpLink.Click += (s, e) => printerComPortHelpMessage.Visible = !printerComPortHelpMessage.Visible;
|
||||
|
||||
printerComPortHelpMessage = new TextWidget("The 'Serial Port' section lists all available serial\nports on your device. Changing which USB port the printer\nis connected to may change the associated serial port.\n\nTip: If you are uncertain, unplug/plug in your printer\nand hit refresh. The new port that appears should be\nyour printer.".Localize(), 0, 0, 10)
|
||||
{
|
||||
TextColor = theme.TextColor,
|
||||
Margin = new BorderDouble(top: 10),
|
||||
Visible = false
|
||||
};
|
||||
|
||||
comPortMessageContainer.AddChild(printerComPortError);
|
||||
comPortMessageContainer.AddChild(printerComPortHelpLink);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue