Made the wide screen panel be the thing that is recreated on ReloadAll.

This commit is contained in:
larsbrubaker 2014-07-03 16:39:36 -07:00
parent c6582a6e28
commit fab40e17a8
3 changed files with 3 additions and 6 deletions

View file

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

View file

@ -229,7 +229,7 @@ namespace MatterHackers.MatterControl
}
}
void RecreateAllPanels(object state = null)
public void RecreateAllPanels(object state = null)
{
if (Width == 0)
{

View file

@ -346,6 +346,7 @@ namespace MatterHackers.MatterControl.PrintQueue
WidescreenPanel.PreChangePannels.RegisterEvent(SaveCurrentlySelctedItemIndex, ref unregisterEvents);
selectedQueueItemIndex = Math.Min(selectedQueueItemIndex, QueueData.Instance.Count-1);
SelectedIndex = selectedQueueItemIndex;
}