public Zone(Editor e, Point p, int index) { editor = e; attachPoint = new VertexMarker(); attachPoint.setPosition(PanAndZoom.fromLocalToGlobal(p)); attachPoint.Colour = System.Drawing.Brushes.Green; outline = new Outline(p); propertypanel = new ZoneProperty(this); possession = Possession.Neutral; Name = string.Format("Zone {0}", index); setSelected(false); }
public Zone(Editor e,Area a) { //name = a.Name; editor = e; area = a; attachPoint = new VertexMarker(); attachPoint.setPosition(Geometry.Geometry.convertPoint(a.AttachmentPoint)); attachPoint.Colour = System.Drawing.Brushes.Green; outline = new Outline(Geometry.Geometry.getOutline(a.Content)); propertypanel = new ZoneProperty(this); possession = Possession.Neutral; Name = string.Format("Zone {0}", a.Id); setSelected(false); }