Refactor for clarity Done -> SlicingDone on PrintItemWrapper

Moved a bunch of classes into their own files in ActionBar
Made the part preview be right when the window changes between wide and narrow.
This commit is contained in:
larsbrubaker 2014-04-16 15:11:01 -07:00
parent acc846d463
commit db09079196
14 changed files with 338 additions and 195 deletions

View file

@ -151,7 +151,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
// we only hook these up to make sure we can regenerate the gcode when we want
printItem.SlicingOutputMessage += sliceItem_SlicingOutputMessage;
printItem.Done += new EventHandler(sliceItem_Done);
printItem.SlicingDone += new EventHandler(sliceItem_Done);
}
else
{
@ -603,7 +603,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
if (printItem != null)
{
printItem.SlicingOutputMessage -= sliceItem_SlicingOutputMessage;
printItem.Done -= new EventHandler(sliceItem_Done);
printItem.SlicingDone -= new EventHandler(sliceItem_Done);
if (startedSliceFromGenerateButton && printItem.CurrentlySlicing)
{
SlicingQueue.Instance.CancelCurrentSlicing();
@ -646,7 +646,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
// So we need to make sure we only have it added once. This will be ok to run when
// not added or when added and will ensure we only have one hook.
printItem.SlicingOutputMessage -= sliceItem_SlicingOutputMessage;
printItem.Done -= sliceItem_Done;
printItem.SlicingDone -= sliceItem_Done;
UiThread.RunOnIdle(CreateAndAddChildren);
startedSliceFromGenerateButton = false;