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:
parent
acc846d463
commit
db09079196
14 changed files with 338 additions and 195 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue