public void DrawClassShape(string s, int x, int y, Dictionary <String, CaptionedShapeBase> dShape) { CircleBase shape = (CircleBase)_NShapeProject.ShapeTypes["Circle"].CreateInstance(); shape.Diameter = 100; shape.X = x; shape.Y = y; shape.SetCaptionText(0, s); _NShapeDiagram.Shapes.Add(shape); if (!dShape.ContainsKey(s)) { dShape.Add(s, shape); } }
public void DrawNestedClassShape(string s, int x, int y, Dictionary <String, CaptionedShapeBase> dShape) { CircleBase shape = (CircleBase)_NShapeProject.ShapeTypes["Circle"].CreateInstance(); shape.Diameter = 100; shape.X = x; shape.Y = y; ColorStyle myColorStyle = new ColorStyle("test", System.Drawing.Color.Red); ColorStyle mySecondColorStyle = new ColorStyle("test", System.Drawing.Color.White); FillStyle myFillStyle = new FillStyle("test", myColorStyle, mySecondColorStyle); shape.FillStyle = myFillStyle; shape.SetCaptionText(0, s); _NShapeDiagram.Shapes.Add(shape); if (!dShape.ContainsKey(s)) { dShape.Add(s, shape); } }