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

            var tutorialWindow = new TutorialWindow();

            tutorialWindow.Show();
        }
Exemplo 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();
 }
Exemplo 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();
     }
 }
Exemplo 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(); });
        }
Exemplo 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();
                }
            }
        }
Exemplo n.º 7
0
        private static void TutorialExecute()
        {
            var tutorialWindow = new TutorialWindow();

            tutorialWindow.Show();
        }
Exemplo n.º 8
0
 public static void ShowStatic()
 {
     instance.Show();
 }