Пример #1
0
        private void UpdateIcon()
        {
            var typeIcon   = IconFactory.CreateConversation(type, Background, Outline);
            var markerIcon = IconFactory.CreateConversationMarker(type, IconColor);

            if (markerIcon != null)
            {
                markerIcon = IconFactory.CreatePlacedIcon(markerIcon, BpmnConstants.ConversationMarkerPlacement,
                                                          BpmnConstants.MarkerSize);
                typeIcon = IconFactory.CreateCombinedIcon(new List <IIcon>(new[] { typeIcon, markerIcon }));
            }

            Icon = IconFactory.CreatePlacedIcon(typeIcon, BpmnConstants.ConversationPlacement,
                                                BpmnConstants.ConversationSize);
        }