Parameters
- res
- iconname
- a null value causes no GoNodeIcon to be allocated, but instead a GoDrawing initialized to look like a rectangle.
protected virtual GoObject CreateIcon(ResourceManager res, String iconname) { if (iconname != null) { GoNodeIcon ni = new GoNodeIcon(); if (res != null) ni.ResourceManager = res; ni.Name = iconname; ni.MinimumIconSize = new SizeF(20, 20); ni.MaximumIconSize = new SizeF(1000, 2000); ni.Size = ni.MinimumIconSize; return ni; } else { GoDrawing rect = new GoDrawing(GoFigure.Rectangle); rect.Selectable = false; rect.Resizable = false; rect.Size = new SizeF(20, 20); return rect; } }