public void AddPoint(EventArgs e) { EditorState edState = new AddingPoints(); State = edState; CurPoints.Clear(); CurContour = null; }
public void AddOuterContour() { Polygon polyg = new Polygon(); Polygs.Add(polyg); CurPolygon = polyg; EditorState edState = new NewPolygon(); State = edState; }
public void AddInnerContour() { if (CurPolygon == null) { MessageBox.Show("Внешний контур не задан!"); return; } Polygon polyg = new Polygon(); CurContour = polyg; // Polygs.Add(polyg); CurPolygon.AddSubPolygon(polyg); EditorState edState = new NewContour(); State = edState; }
public void EditingOff() { EditorState edState = new NoEditing(); State = edState; }
public void DeletePoint(EventArgs e) { EditorState edState = new DeletingPoints(); State = edState; CurContour = null; }