/// <inheritdoc/>
 public void HandleStartEditingStep()
 {
     if (stepWindow == null)
     {
         StepWindow.ShowInspector();
     }
 }
        /// <inheritdoc/>
        public void HandleStepWindowClosed(StepWindow window)
        {
            if (CurrentCourse != null)
            {
                CourseAssetManager.Save(CurrentCourse);
            }

            stepWindow = null;
        }
 /// <inheritdoc/>
 public void HandleNewStepWindow(StepWindow window)
 {
     stepWindow = window;
     if (courseWindow == null || courseWindow.Equals(null))
     {
         HandleCurrentStepChanged(null);
     }
     else
     {
         HandleCurrentStepChanged(courseWindow.GetChapter().ChapterMetadata.LastSelectedStep);
     }
 }
Example #4
0
 /// <summary>
 /// Notifies selected <see cref="IEditingStrategy"/> when a <see cref="StepWindow"/> was closed.
 /// </summary>
 internal static void StepWindowClosed(StepWindow window)
 {
     strategy.HandleStepWindowClosed(window);
 }
Example #5
0
 /// <summary>
 /// Notifies selected <see cref="IEditingStrategy"/> when a new <see cref="StepWindow"/> was just opened.
 /// </summary>
 internal static void StepWindowOpened(StepWindow window)
 {
     strategy.HandleNewStepWindow(window);
 }
Example #6
0
        protected override void Then(StepWindow window)
        {
            IStep step = window.GetStep();

            Assert.AreEqual("New Step!", step.Data.Name);
        }
Example #7
0
 /// <inheritdoc/>
 public void HandleStepWindowClosed(StepWindow window)
 {
 }
Example #8
0
 /// <inheritdoc/>
 public void HandleNewStepWindow(StepWindow window)
 {
 }