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

@ -109,9 +109,14 @@ namespace MatterHackers.MatterControl
QueueTabPage.Text = string.Format(queueString, QueueData.Instance.Count);
}
public override void OnClosed(EventArgs e)
public override void OnClosing(out bool cancelClose)
{
tabStateBeforeClose = SelectedTabIndex;
base.OnClosing(out cancelClose);
}
public override void OnClosed(EventArgs e)
{
if (unregisterEvents != null)
{
unregisterEvents(this, null);