In my C# winforms application I need to draw blocks. These blocks are so called process blocks. All the blocks together are a process. There are different kinds of process blocks. At this moment I have three kinds of process blocks: A, B, C. When I draw a process block it looks like this:
A
B
B
C
A
Every block has it's own backgroundcolor. And every block has it's own properties. For example: process block A and B both has the same properties (ID and description). The difference is the background color of the block.
I already have created a user control. This user control is a process block. I already have a picturebox where I add the user control (process blocks) to the controls collection. This works fine. The point is that I don't know how to link a process block of type A, B, C to the user control. I also have a propertygrid. When a processblock is clicked I want to display it's property values.
I don't know exactly how to implement this. I hope you can point me at the right direction.