Please correct the code:
1)
“Me” has to be replaced by “this”
public override void CreateAttributes()
{
m_attributes = new MySimpleIntegerParameterAttributes(Me);
}
-
add the missing “{” after “…channel)”
protected override void Render(GH_Canvas canvas, Graphics graphics, GH_CanvasChannel channel)
// Render all the wires that connect the Owner to all its Sources.
if (channel == GH_CanvasChannel.Wires) -
correct “New” into “new”
// Now it’s time to draw the text on top of the capsule.
// First we’ll draw the Owner NickName using a standard font and a black brush.
// We’ll also align the NickName in the center of the Bounds.
StringFormat format = New StringFormat();
Please add the full namespace to classes that are abiguous between System.Drawing and Eto.Drawing
like RectangleF, Brushes, Graphics.
Thank you!