Пример #1
0
 public void RemovePoint(DragablePointViewModel point)
 {
     PointVms.Remove(point);
     PolygonObject.RemovePoint(point.ModelObject);
     OnPropertyChanged("ClosedPointVms");
     OnPropertyChanged("Points");
     OnPropertyChanged("");
     Parent.OnPropertyChanged("");
 }
Пример #2
0
        public void RemovePoint(LfDragablePointViewModel point)
        {
            if (LocalModelObject == null)
            {
                return;
            }

            PointVms.Remove(point);
            LocalModelObject.RemovePoint(point.ModelObject);

            InvalidateAll();
            ParentVm.OnPropertyChanged("");
        }