Skip to content

Commit e397df7

Browse files
committed
Add GH Component icons; remove extraneous files from C# soln
1 parent ea18535 commit e397df7

18 files changed

+6019
-786
lines changed

grasshopper/Components/AddProperties.cs

Lines changed: 0 additions & 135 deletions
This file was deleted.

grasshopper/Components/AddRelationships.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Drawing;
23
using System.Collections.Generic;
34
using System.Linq;
45
using Grasshopper.Kernel;
@@ -19,7 +20,7 @@ public AddRelationships()
1920
)
2021
{ }
2122

22-
// protected override Bitmap Icon => Resources.CreateAssemblyIcon;
23+
protected override Bitmap Icon => Resources.AddRelationshipsIcon;
2324

2425
public override Guid ComponentGuid => new("F7297015-6047-4003-B205-D4918FE0A63A");
2526

grasshopper/Components/AssemblyParam.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Drawing;
23
using Grasshopper.Kernel;
34

45
namespace Rangekeeper.Components;
@@ -33,7 +34,7 @@ public AssemblyParam() : this(
3334

3435
public override Guid ComponentGuid => new("8C4EB9A5-A658-49B9-B1E8-3982A524CAE2");
3536

36-
// protected override Bitmap Icon => Resources.AssemblyParamIcon;
37+
protected override Bitmap Icon => Resources.AssemblyParamIcon;
3738

3839
public override GH_Exposure Exposure => GH_Exposure.tertiary;
3940

grasshopper/Components/Components.csproj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,19 @@
2727
<ProjectReference Include="..\Model\Model.csproj" />
2828
</ItemGroup>
2929

30+
<ItemGroup>
31+
<EmbeddedResource Update="Resources.resx">
32+
<Generator>ResXFileCodeGenerator</Generator>
33+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
34+
</EmbeddedResource>
35+
</ItemGroup>
36+
37+
<ItemGroup>
38+
<Compile Update="Resources.Designer.cs">
39+
<DesignTime>True</DesignTime>
40+
<AutoGen>True</AutoGen>
41+
<DependentUpon>Resources.resx</DependentUpon>
42+
</Compile>
43+
</ItemGroup>
44+
3045
</Project>

grasshopper/Components/CreateEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public CreateEntity()
1818
)
1919
{ }
2020

21-
// protected override Bitmap Icon => Resources.CreateEntityIcon;
21+
protected override Bitmap Icon => Resources.CreateEntityIcon;
2222

2323
public override Guid ComponentGuid => new("5B115630-2F5A-4E82-BEB2-1E86768B1893");
2424

grasshopper/Components/EntityParam.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public EntityParam() : this(
3434

3535
public override Guid ComponentGuid => new("8316B1CC-A04B-4276-85B9-C0A987A9F6BD");
3636

37-
// protected override Bitmap Icon => Resources.EntityParamIcon;
37+
protected override Bitmap Icon => Resources.EntityParamIcon;
3838

3939
public override GH_Exposure Exposure => GH_Exposure.tertiary;
4040
}

grasshopper/Components/Parasite.cs

Lines changed: 0 additions & 181 deletions
This file was deleted.

0 commit comments

Comments
 (0)