Making the windows understand their closed states better.

Made print history have a data and a view
This commit is contained in:
larsbrubaker 2014-07-02 11:43:06 -07:00
parent 9679512a7b
commit c4a6a9960a
9 changed files with 146 additions and 86 deletions

View file

@ -98,6 +98,11 @@ namespace MatterHackers.MatterControl
UiThread.RunOnIdle((state) =>
{
widescreenPanel.StoreUiState();
// give the widget a chance to hear about the close before they are actually colsed.
bool cancelClose;
this.OnClosing(out cancelClose);
this.CloseAndRemoveAllChildren();
AddElements();
});