Add support for closing MatterControl while printing

- Rename CloseAndRemoveAllChildren
This commit is contained in:
John Lewin 2016-01-12 11:20:27 -08:00
parent 58cada60af
commit 77633139aa
10 changed files with 39 additions and 29 deletions

View file

@ -126,7 +126,7 @@ namespace MatterHackers.MatterControl
private void LoadColumnTwo()
{
ColumnTwo.CloseAndRemoveAllChildren();
ColumnTwo.CloseAllChildren();
PartPreviewContent partViewContent = new PartPreviewContent(PrinterConnectionAndCommunication.Instance.ActivePrintItem, View3DWidget.WindowMode.Embeded, View3DWidget.AutoRotate.Enabled);
partViewContent.AnchorAll();
@ -212,7 +212,7 @@ namespace MatterHackers.MatterControl
private void RemovePanelsAndCreateEmpties()
{
CloseAndRemoveAllChildren();
CloseAllChildren();
ColumnOne = new FlowLayoutWidget(FlowDirection.TopToBottom);
ColumnTwo = new FlowLayoutWidget(FlowDirection.TopToBottom);