Moving the ActivePrinterChanged call back and Active Printer calls all into ActivePrinterProfile

This commit is contained in:
larsbrubaker 2014-02-14 12:06:44 -08:00
parent 5036b364c0
commit 0040895615
21 changed files with 102 additions and 98 deletions

View file

@ -40,8 +40,7 @@ namespace MatterHackers.MatterControl
doLayout();
PrinterCommunication.Instance.ActivePrinterChanged.RegisterEvent(reloadAfterPrinterProfileChanged, ref unregisterEvents);
ActivePrinterProfile.Instance.ActivePrinterChanged.RegisterEvent(reloadAfterPrinterProfileChanged, ref unregisterEvents);
}
public void doLayout()
@ -76,7 +75,7 @@ namespace MatterHackers.MatterControl
topToBottom.AddChild(exportSTL);
}
bool showExportGCodeButton = PrinterCommunication.Instance.ActivePrinter != null || partIsGCode;
bool showExportGCodeButton = ActivePrinterProfile.Instance.ActivePrinter != null || partIsGCode;
if(showExportGCodeButton)
{