Skip to content

Commit 26118f9

Browse files
committed
Node/NodeConnector/NodeConnection are now child classes of IElement, which simplified a lot of code.
NodeUtility renamed to NodeRenderer, moved all non rendering code to the GraphControl
1 parent 7058cf7 commit 26118f9

15 files changed

+752
-758
lines changed

Graph/ElementType.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace Graph
7+
{
8+
public enum ElementType
9+
{
10+
Node,
11+
NodeItem,
12+
InputConnector,
13+
OutputConnector,
14+
Connection
15+
}
16+
}

Graph/Graph.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@
4242
<Reference Include="System.Xml" />
4343
</ItemGroup>
4444
<ItemGroup>
45+
<Compile Include="ElementType.cs" />
4546
<Compile Include="GraphConstants.cs" />
4647
<Compile Include="GraphControl.cs">
4748
<SubType>Component</SubType>
4849
</Compile>
4950
<Compile Include="GraphControl.Designer.cs">
5051
<DependentUpon>GraphControl.cs</DependentUpon>
5152
</Compile>
53+
<Compile Include="IElement.cs" />
5254
<Compile Include="Items\NodeCheckboxItem.cs" />
5355
<Compile Include="Items\NodeColorItem.cs" />
5456
<Compile Include="Items\NodeImageItem.cs" />
@@ -59,7 +61,7 @@
5961
<Compile Include="NodeConnection.cs" />
6062
<Compile Include="NodeConnector.cs" />
6163
<Compile Include="NodeItem.cs" />
62-
<Compile Include="NodeUtility.cs" />
64+
<Compile Include="GraphRenderer.cs" />
6365
<Compile Include="Properties\AssemblyInfo.cs" />
6466
<Compile Include="RenderState.cs" />
6567
</ItemGroup>

0 commit comments

Comments
 (0)