private void UpdateTaskIcon() { if (TaskType == TaskType.EventTriggered) { var eventNodeStyle = new EventNodeStyle { Characteristic = TriggerEventCharacteristic, Type = TriggerEventType, Background = Background, Outline = EventOutline, IconColor = IconColor }; eventNodeStyle.UpdateIcon(null); taskIcon = eventNodeStyle.Icon; } else { taskIcon = IconFactory.CreateActivityTaskType(taskType, IconColor, Background); } if (taskIcon != null) { taskIcon = IconFactory.CreatePlacedIcon(taskIcon, BpmnConstants.TaskTypePlacement, BpmnConstants.TaskTypeSize); } }