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

@ -72,7 +72,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public void Reload(PrintItemWrapper printItem)
{
this.CloseAndRemoveAllChildren();
this.CloseAllChildren();
this.Load(printItem);
}

View file

@ -165,7 +165,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
textImageButtonFactory.disabledTextColor = ActiveTheme.Instance.PrimaryTextColor;
textImageButtonFactory.pressedTextColor = ActiveTheme.Instance.PrimaryTextColor;
CloseAndRemoveAllChildren();
CloseAllChildren();
gcodeViewWidget = null;
gcodeProcessingStateInfoText = null;
@ -427,7 +427,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
private void AddModelInfo(FlowLayoutWidget buttonPanel)
{
buttonPanel.CloseAndRemoveAllChildren();
buttonPanel.CloseAllChildren();
double oldWidth = textImageButtonFactory.FixedWidth;
textImageButtonFactory.FixedWidth = 44 * TextWidget.GlobalPointSizeScaleRatio;
@ -548,7 +548,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
private void AddDisplayControls(FlowLayoutWidget buttonPanel)
{
buttonPanel.CloseAndRemoveAllChildren();
buttonPanel.CloseAllChildren();
double oldWidth = textImageButtonFactory.FixedWidth;
textImageButtonFactory.FixedWidth = 44 * TextWidget.GlobalPointSizeScaleRatio;