//Group shapes private void btnGroup_Click(object sender, EventArgs e) { UncheckButton(); if (shapes.Count(shape => shape.isSelect) > 1) { ShapeSet group = new ShapeSet(); for (int i = 0; i < shapes.Count; i++) { if (shapes[i].isSelect) { group.Add(shapes[i]); shapes.RemoveAt(i); i--; } } FindGroupRegion(group); shapes.Add(group); group.isSelect = true; pnlPaint.Invalidate(); } }
public virtual void AddShape(IShape shape) { _shapes.Add((Shape)shape, ((Shape)shape).AddPackage); }
public virtual void AddShape(IShape shape) { _shapes.Add((Shape)shape, ((Shape)shape).AddUnitGroup); }
public virtual void AddShape(IShape shape) { _shapes.Add((Shape)shape, ((Shape)shape).AddRoute); }