Changed PrintItemWrapper to have RootedObjectEventHandlers
Fixed lots of code to use them correctly CompactSlidePanel does not need to reload back panel anymore as that happens in wide screen panel
This commit is contained in:
parent
416bc54d2c
commit
a1990f10bd
13 changed files with 104 additions and 128 deletions
|
|
@ -115,7 +115,7 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
// first we have to remove any link to an old part (the part currently in the view)
|
||||
if (activePrintPreviewImage.PrintItem != null)
|
||||
{
|
||||
activePrintPreviewImage.PrintItem.SlicingOutputMessage -= PrintItem_SlicingOutputMessage;
|
||||
activePrintPreviewImage.PrintItem.SlicingOutputMessage.UnregisterEvent(PrintItem_SlicingOutputMessage, ref unregisterEvents);
|
||||
}
|
||||
|
||||
activePrintPreviewImage.PrintItem = PrinterCommunication.Instance.ActivePrintItem;
|
||||
|
|
@ -123,7 +123,7 @@ namespace MatterHackers.MatterControl.ActionBar
|
|||
// then hook up our new part
|
||||
if (activePrintPreviewImage.PrintItem != null)
|
||||
{
|
||||
activePrintPreviewImage.PrintItem.SlicingOutputMessage += PrintItem_SlicingOutputMessage;
|
||||
activePrintPreviewImage.PrintItem.SlicingOutputMessage.RegisterEvent(PrintItem_SlicingOutputMessage, ref unregisterEvents);
|
||||
}
|
||||
|
||||
activePrintPreviewImage.Invalidate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue