Disable PrinterCommunication status indicator

- Issue MatterHackers/MCCentral#2787
Disable CommunicationStatus reporting in toolbar
This commit is contained in:
John Lewin 2018-02-07 18:44:15 -08:00
parent 8f55a938c5
commit 902d22bdce

View file

@ -155,19 +155,19 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
buttonGroupB.Add(layers2DButton);
this.AddChild(layers2DButton);
// put in the detail message
var printerConnectionDetail = new TextWidget("")
{
Margin = new BorderDouble(5, 0),
TextColor = ActiveTheme.Instance.PrimaryTextColor,
AutoExpandBoundsToText = true,
PointSize = 8
};
printer.Connection.PrintingStateChanged.RegisterEvent((s, e) =>
{
printerConnectionDetail.Text = printer.PrinterConnectionStatus;
}, ref unregisterEvents);
this.AddChild(printerConnectionDetail);
//// put in the detail message
//var printerConnectionDetail = new TextWidget("")
//{
// Margin = new BorderDouble(5, 0),
// TextColor = ActiveTheme.Instance.PrimaryTextColor,
// AutoExpandBoundsToText = true,
// PointSize = 8
//};
//printer.Connection.PrintingStateChanged.RegisterEvent((s, e) =>
//{
// printerConnectionDetail.Text = printer.PrinterConnectionStatus;
//}, ref unregisterEvents);
//this.AddChild(printerConnectionDetail);
this.AddChild(new HorizontalSpacer());