private void AddNativeActivityIcons() { foreach (var categoryDefinition in NativeActivityDefintions.Categories) { foreach (var activityType in categoryDefinition.ActivityTypes) { Stream designerIconStream = ResourceManager.GetActivityDesignerIcon(activityType.ActivityType.Name.Split('`')[0]); if (designerIconStream != null) { DesignerHelper.AddToolboxIcon( activityType.ActivityType, new System.Drawing.Bitmap(designerIconStream)); designerIconStream = null; } } } }