Esempio n. 1
0
 private void StartTutorial()
 {
     Current.Instance.TutorialStarted = true;
     tutorialWindow         = new TutorialWindow();
     tutorialWindow.Closed += tutorialWindow_Closed;
     tutorialWindow.Show();
 }
Esempio n. 2
0
        private void TutorialButton_Click(object sender, RoutedEventArgs e)
        {
            SoundManager.PlayClickSound();

            var tutorialWindow = new TutorialWindow();

            tutorialWindow.Show();
        }
Esempio n. 3
0
 private void TutorialButtonClick(object sender, RoutedEventArgs e)
 {
     Window childWindow = new TutorialWindow();
     childWindow.ShowInTaskbar = false;
     childWindow.Owner = Application.Current.MainWindow;
     childWindow.DataContext = this.DataContext;
     childWindow.Show();
 }
Esempio n. 4
0
 public static void Introduction()
 {
     //TryActivateTutorial(introductionDef, OpportunityType.Important);
     if (!PrisonLaborPrefs.HasTutorialFlag(TutorialFlag.Introduction))
     {
         TutorialWindow.Show("Introduction");
         PrisonLaborPrefs.AddTutorialFlag(TutorialFlag.Introduction);
         PrisonLaborPrefs.Save();
     }
 }
Esempio n. 5
0
        private static void RunTutorial(string contentPath, Lifetime lifetime, ISolution solution, IPsiFiles psiFiles,
                                        TextControlManager textControlManager, IShellLocks shellLocks, IEditorManager editorManager,
                                        DocumentManager documentManager, IUIApplication environment, IActionManager actionManager,
                                        ToolWindowManager toolWindowManager, TutorialWindowDescriptor tutorialWindowDescriptor,
                                        IWindowsHookManager windowsHookManager, IPsiServices psiServices, IActionShortcuts shortcutManager,
                                        IColorThemeManager colorThemeManager)
        {
            var tutorialWindow = new TutorialWindow(contentPath, lifetime, solution, psiFiles, textControlManager, shellLocks, editorManager,
                                                    documentManager, environment, actionManager, toolWindowManager, tutorialWindowDescriptor, windowsHookManager,
                                                    psiServices, shortcutManager, colorThemeManager);

            lifetime.AddBracket(
                () => { tutorialWindow.Show(); },
                () => { tutorialWindow.Close(); });
        }
Esempio n. 6
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();
                }
            }
        }
Esempio n. 7
0
        private static void TutorialExecute()
        {
            var tutorialWindow = new TutorialWindow();

            tutorialWindow.Show();
        }
 public static void ShowStatic()
 {
     instance.Show();
 }