void Deselected(TabScreen tabScreen) { tabScreen.Deselected(); if (tabScreen.AutoUnload && tabScreen.Activated) { tabScreen.Unload(); } }
void Activate(TabScreen tabScreen, bool instancePreserved) { if (!tabScreen.Activated) { tabScreen.Activated = true; if (tabScreen.content == null) { tabScreen.content = new ContentManager(ScreenManager.Game.Services, content.RootDirectory); } tabScreen.Activate(instancePreserved); } tabScreen.Selected(); }