public void Create(ConfigElementNodeBuilder builder, ICollection <ConfigElementNode> elements,
                           ConfigElementNode elementNode)
        {
            elementNode.ElementId   = FactoryHelper.BuildId(elementNode);
            elementNode.ElementName = FactoryHelper.BuildName(elementNode);

            elementNode.RefreshCommand = FactoryHelper.NoRefreshCommand;
            elementNode.RegisterEditCommand(builder);
            elementNode.DeleteCommand = new DeleteElementCommand(builder, elements, elementNode);
            elementNode.RegisterCopyCommand();
            elementNode.PasteCommand = FactoryHelper.NoPasteCommand;
        }
Пример #2
0
        public void Create(ConfigElementNodeBuilder builder, ICollection <ConfigElementNode> elements, ConfigElementNode elementNode)
        {
            elementNode.DocumentId  = elementNode.ElementMetadata.Name;
            elementNode.ElementId   = FactoryHelper.BuildId(elementNode);
            elementNode.ElementName = FactoryHelper.BuildName(elementNode);

            elementNode.RefreshCommand = new RefreshContainerCommand(elementNode);
            elementNode.RegisterAddCommands(builder, ElementChildrenTypes);
            elementNode.RegisterEditCommand(builder);
            elementNode.DeleteCommand = new DeleteElementCommand(builder, elements, elementNode);
            elementNode.CopyCommand   = FactoryHelper.NoCopyCommand;
            elementNode.RegisterPasteCommand(builder);

            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, ViewContainerNodeFactory.ElementType);
            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, PrintViewContainerNodeFactory.ElementType);
            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, ScenarioContainerNodeFactory.ElementType);
            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, ProcessContainerNodeFactory.ElementType);
            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, ServiceContainerNodeFactory.ElementType);
        }
Пример #3
0
        public void Create(ConfigElementNodeBuilder builder, ICollection <ConfigElementNode> elements, ConfigElementNode elementNode)
        {
            elementNode.ConfigId    = elementNode.ElementMetadata.Name;
            elementNode.Version     = elementNode.ElementMetadata.Version;
            elementNode.ElementId   = FactoryHelper.BuildId(elementNode);
            elementNode.ElementName = FactoryHelper.BuildName(elementNode);

            elementNode.RefreshCommand = new RefreshContainerCommand(elementNode);
            elementNode.RegisterAddCommands(builder, ElementChildrenTypes);
            elementNode.RegisterEditCommand(builder);
            elementNode.DeleteCommand = new DeleteElementCommand(builder, elements, elementNode);
            elementNode.CopyCommand   = FactoryHelper.NoCopyCommand;
            elementNode.PasteCommand  = FactoryHelper.NoPasteCommand;

            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, MenuContainerNodeFactory.ElementType);
            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, DocumentContainerNodeFactory.ElementType);
            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, RegisterContainerNodeFactory.ElementType);
            builder.BuildElement(elements, elementNode, elementNode.ElementMetadata, ReportContainerNodeFactory.ElementType);

            elementNode.RefreshCommand.TryExecute();
        }