Beispiel #1
0
        private void DeleteArea()
        {
            AreaViewModel area = SelectedArea;

            mFootprint.SlotAreas.Remove(area.Area);
            mFootprint.FootprintAreas.Remove(area.Area);
            mSlotAreas.Remove(area);
            mFootprintAreas.Remove(area);
        }
Beispiel #2
0
        private void AddFootprintArea(FTPT.Area area)
        {
            area = NewArea(area);
            mFootprint.FootprintAreas.Add(area);
            area = mFootprint.FootprintAreas.Last();
            var vm = new AreaViewModel(this, area);

            mFootprintAreas.Add(vm);
            SelectedArea = vm;
        }
 public PointViewModel(AreaViewModel area, FTPT.PolygonPoint point)
 {
     mArea  = area;
     mPoint = point;
     mArea.PropertyChanged += mArea_PropertyChanged;
 }
 public PointViewModel(AreaViewModel area, FTPT.PolygonPoint point)
 {
     mArea = area;
     mPoint = point;
     mArea.PropertyChanged += mArea_PropertyChanged;
 }