コード例 #1
0
        private void DeleteStep(IStep step)
        {
            if (CurrentChapter.ChapterMetadata.LastSelectedStep == step)
            {
                CurrentChapter.ChapterMetadata.LastSelectedStep = null;
                GlobalEditorHandler.ChangeCurrentStep(null);
            }

            CurrentChapter.Data.Steps.Remove(step);
            MarkToRefresh();
        }
コード例 #2
0
        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);
        }