Пример #1
0
 public ExpressionContainerDTO()
 {
     GroupingPathDTO                 = new PathElementDTO();
     ContainerPathDTO                = new PathElementDTO();
     RelativeExpressionParameter     = new NullParameterDTO();
     RelativeExpressionNormParameter = new NullParameterDTO();
 }
Пример #2
0
        private void updatePathElement(PathElementDTO pathElement, string displayName, string iconName)
        {
            if (string.IsNullOrEmpty(pathElement.DisplayName))
            {
                pathElement.DisplayName = displayName;
            }

            pathElement.IconName = iconName;
        }
        private void addParmeterNode(ITreeNode node, IParameter parameter, PathElementDTO pathElementDTO)
        {
            var representation = new RepresentationInfo {
                DisplayName = pathElementDTO.DisplayName, IconName = pathElementDTO.IconName
            };
            var parameterNode = _treeNodeFactory.CreateFor(parameter, representation);

            parameterNode.ToolTip = _toolTipPartCreator.ToolTipFor(_fullPathDisplayResolver.FullPathFor(parameter));
            node.AddChild(parameterNode);
        }
        private ITreeNode createPathElementNodeFor(ITreeNode node, PathElementDTO pathElementDTO)
        {
            var pathElementNode = _treeNodeFactory.CreateFor(pathElementDTO.DisplayName, string.Format("{0}-{1}", node.Id, pathElementDTO.DisplayName), pathElementDTO.IconName);

            var existingNode = node.Children.Find(n => Equals(n.Id, pathElementNode.Id));

            if (existingNode != null)
            {
                return(existingNode);
            }

            node.AddChild(pathElementNode);
            return(pathElementNode);
        }
        private RepositoryItem configureContainerRepository(PathElementDTO parameterPathDTO)
        {
            var containerDisplayNameRepository = new UxRepositoryItemImageComboBox(gridView, _imageListRetriever);

            return(containerDisplayNameRepository.AddItem(parameterPathDTO, parameterPathDTO.IconName));
        }
 private RepositoryItem configureContainerRepository(PathElementDTO parameterPathDTO)
 {
     _containerDisplayNameRepository.Items.Clear();
     _containerDisplayNameRepository.Items.Add(new ImageComboBoxItem(parameterPathDTO, _imageListRetriever.ImageIndex(parameterPathDTO.IconName)));
     return(_containerDisplayNameRepository);
 }
Пример #7
0
 private void updatePathElement(PathElementDTO pathElement, string displayName, ApplicationIcon icon)
 {
     updatePathElement(pathElement, displayName, icon.IconName);
 }
        public static void UpdatePathElement(this RepresentationInfo representationInfo, PathElementDTO pathElementDTO)
        {
            pathElementDTO.Description = representationInfo.Description;
            pathElementDTO.DisplayName = representationInfo.DisplayName;

            if (!string.IsNullOrEmpty(representationInfo.IconName))
            {
                pathElementDTO.IconName = representationInfo.IconName;
            }
        }
 private bool shouldAddPathElementToNodeHiearchy(PathElementDTO pathElementDTO, PathElements pathElements)
 {
     return(!string.IsNullOrEmpty(pathElementDTO.DisplayName) &&
            !pathElementDTO.DisplayName.IsOneOf(Constants.ORGANISM, Constants.NEIGHBORHOODS, CoreConstants.Organ.Lumen, Constants.APPLICATIONS, Constants.EVENTS) &&
            !Equals(parameterDisplayElementDTOFor(pathElements), pathElementDTO)); //means that the parameter won't have the same display name as the parent node
 }