/// <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); } }
/// <summary> /// Notifies selected <see cref="IEditingStrategy"/> when a <see cref="StepWindow"/> was closed. /// </summary> internal static void StepWindowClosed(StepWindow window) { strategy.HandleStepWindowClosed(window); }
/// <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); }
protected override void Then(StepWindow window) { IStep step = window.GetStep(); Assert.AreEqual("New Step!", step.Data.Name); }
/// <inheritdoc/> public void HandleStepWindowClosed(StepWindow window) { }
/// <inheritdoc/> public void HandleNewStepWindow(StepWindow window) { }