public void Remove(PointViewModel model)
 {
     model.PropertyChanged -= OnPointChanged;
     mPoints.Remove(model);
     SelectedPoint = mPoints.LastOrDefault();
     OnPropertyChanged("Points");
 }
 public void Add(PointViewModel vm)
 {
     vm.PropertyChanged += OnPointChanged;
     mPoints.Add(vm);
     SelectedPoint = vm;
     OnPropertyChanged("Points");
 }
        public void Add()
        {
            mArea.ClosedPolygon.Add();
            FTPT.PolygonPoint point = mArea.ClosedPolygon.Last();
            point.X = OffsetX;
            point.Z = OffsetZ;
            var vm = new PointViewModel(this, point);

            Add(vm);
        }
 public void Remove(PointViewModel model)
 {
     model.PropertyChanged -= OnPointChanged;
     mPoints.Remove(model);
     SelectedPoint = mPoints.LastOrDefault();
     OnPropertyChanged("Points");
 }
 public void Add(PointViewModel vm)
 {
     vm.PropertyChanged += OnPointChanged;
     mPoints.Add(vm);
     SelectedPoint = vm;
     OnPropertyChanged("Points");
 }
 public void Add()
 {
     mArea.ClosedPolygon.Add();
     FTPT.PolygonPoint point = mArea.ClosedPolygon.Last();
     point.X = OffsetX;
     point.Z = OffsetZ;
     var vm = new PointViewModel(this, point);
     Add(vm);
 }