public void OpenPage(UIPage pageToOpen) { m_Pages.Push(pageToOpen); pageToOpen.Open(); m_CurrentPage = pageToOpen; }