Exemple #1
0
        public void LeaveSection(MainMenuSection section)
        {
            if (sectionStack.Count > 0)
            {
                MainMenuSection activeSection = sectionStack.Pop();
                if (activeSection != section)
                {
                    throw new InvalidOperationException();
                }

                //renderSetup.BeginPageTransition();

                activeSection.OnHide(true);

                if (sectionStack.Count > 0)
                {
                    sectionStack.Peek().OnShow(this);
                }
            }
        }