Exemplo n.º 1
0
 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;
             }
         }
     }
 }