protected virtual DiagramShape CreateIcon(ImageList imglist, int imgindex) { NodeIcon icon1 = new NodeIcon(); icon1.ImageList = imglist; icon1.Index = imgindex; icon1.MinimumIconSize = new SizeF(20f, 20f); icon1.MaximumIconSize = new SizeF(1000f, 2000f); icon1.Size = icon1.MinimumIconSize; return(icon1); }
protected virtual DiagramShape CreateIcon(ResourceManager res, string iconname) { if (iconname != null) { NodeIcon icon1 = new NodeIcon(); if (res != null) { icon1.ResourceManager = res; } icon1.Name = iconname; icon1.MinimumIconSize = new SizeF(20f, 20f); icon1.MaximumIconSize = new SizeF(100f, 200f); icon1.Size = icon1.MinimumIconSize; return icon1; } RectangleGraph rectangle1 = new RectangleGraph(); rectangle1.Selectable = false; rectangle1.Size = new SizeF(20f, 20f); return rectangle1; }
protected virtual DiagramShape CreateIcon(ResourceManager res, string iconname) { if (iconname != null) { NodeIcon icon1 = new NodeIcon(); if (res != null) { icon1.ResourceManager = res; } icon1.Name = iconname; icon1.MinimumIconSize = new SizeF(20f, 20f); icon1.MaximumIconSize = new SizeF(1000f, 2000f); icon1.Size = icon1.MinimumIconSize; return(icon1); } RectangleGraph rectangle1 = new RectangleGraph(); rectangle1.Selectable = false; rectangle1.Size = new SizeF(20f, 20f); return(rectangle1); }
protected virtual DiagramShape CreateIcon(ImageList imglist, int imgindex) { NodeIcon icon1 = new NodeIcon(); icon1.ImageList = imglist; icon1.Index = imgindex; icon1.MinimumIconSize = new SizeF(20f, 20f); icon1.MaximumIconSize = new SizeF(100f, 200f); icon1.Size = icon1.MinimumIconSize; return icon1; }