示例#1
0
        void tutorialMenuWindow_Closed(object sender, EventArgs e)
        {
            var tutorialMenuWindow = sender as TutorialMenuWindow;
            if (tutorialMenuWindow != null && !string.IsNullOrEmpty(tutorialMenuWindow.SelectedOption))
            {
                if (tutorialMenuWindow.SelectedOption.Equals("Button2"))
                {
                    Current.Instance.Tutorial2Started = true;
                    tutorialWindow = new TutorialWindow();
                    tutorialWindow.Closed += tutorialWindow_Closed;
                    tutorialWindow.Show();
                }

                if (tutorialMenuWindow.SelectedOption.Equals("Button3"))
                {
                    TutorialGameWindow gameWindow = new TutorialGameWindow();
                    gameWindow.Closed += gameWindow_Closed;
                    gameWindow.Show();
                }
            }
        }
示例#2
0
 private void StartTutorial()
 {
     Current.Instance.TutorialStarted = true;
     tutorialWindow = new TutorialWindow();
     tutorialWindow.Closed += tutorialWindow_Closed;
     tutorialWindow.Show();
 }