Beispiel #1
0
        private bool AddVertex(Vertex v)
        {
            if (GetModel.ContainsVerticies(v.Id))
            {
                return(false);
            }

            GetModel.AddVertex(v);
            AddedVertex?.Invoke(v);
            return(true);
        }
Beispiel #2
0
        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;
        }