示例#1
0
        private void ShowPreviousScreen()
        {
            int screenIdx = Screens.IndexOf(CurrentScreen);

            if (screenIdx < 1)
            {
                LogTo.Error("ShowPreviousScreen called with invalid CurrentScreen: Screens.IndexOf(CurrentScreen) < 1");
                return;
            }

            ShowScreen(Screens.ElementAt(screenIdx - 1));
        }