public void CreateClassificationFolderUnder(ITreeNode <IClassification> parentClassificatonNode)
        {
            var parentClassification = parentClassificatonNode.Tag;

            using (var nameClassificationPresenter = _applicationController.Start <INameClassificationPresenter>())
            {
                if (!nameClassificationPresenter.NewName(parentClassification))
                {
                    return;
                }

                var classification = createClassificationUnder(parentClassification, nameClassificationPresenter.Name);
                //just adding a node to an existing node: no need to add the whole treee hierarchy
                var classificationNode = addClassificationToTree(classification, alsoAddRoot: false);
                _explorerPresenter.EnsureNodeVisible(classificationNode);
            }
        }
Пример #2
0
        public void Handle(ParameterIdentificationCreatedEvent eventToHandle)
        {
            var node = addParameterIdentificationToTree(eventToHandle.ParameterIdentification);

            _explorerPresenter.EnsureNodeVisible(node);
        }