private bool AddVertex(Vertex v) { if (GetModel.ContainsVerticies(v.Id)) { return(false); } GetModel.AddVertex(v); AddedVertex?.Invoke(v); return(true); }
public void ChangePosition(Point p) { SelectedElements.ForEach(v => { if (!GetModel.ContainsVerticies(v)) { return; } var vc = GetModel.GetVertex(v); vc.PositionX = p.X; vc.PositionY = p.Y; }); Changed = true; }