private void DeleteStep(IStep step) { if (CurrentChapter.ChapterMetadata.LastSelectedStep == step) { CurrentChapter.ChapterMetadata.LastSelectedStep = null; GlobalEditorHandler.ChangeCurrentStep(null); } CurrentChapter.Data.Steps.Remove(step); MarkToRefresh(); }
private void SelectStepNode(StepNode stepNode) { IStep step = stepNode == null ? null : stepNode.Step; if (lastSelectedStepNode != null) { lastSelectedStepNode.IsLastSelectedStep = false; } lastSelectedStepNode = stepNode; CurrentChapter.ChapterMetadata.LastSelectedStep = step; if (stepNode != null) { stepNode.IsLastSelectedStep = true; } GlobalEditorHandler.ChangeCurrentStep(step); }