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

@ -166,10 +166,15 @@ namespace MatterHackers.MatterControl
HelpTextWidget.Instance.HideHoverText();
}
public override void OnClosed(EventArgs e)
public override void OnClosing(out bool cancelClose)
{
lastPanelIndexOnClose = PanelIndex;
lastAdvanceControlsIndex = advancedControlsTabControl.SelectedTabIndex;
base.OnClosing(out cancelClose);
}
public override void OnClosed(EventArgs e)
{
if (unregisterEvents != null)
{
unregisterEvents(this, null);