Exemplo n.º 1
0
        /// <summary>
        /// record feature delete
        /// </summary>
        /// <param name="featrueIdx">featureID</param>
        /// <param name="feature">what was deleted</param>
        public void featureDeleted(int featrueIdx, Feature feature)
        {
            Debug.Assert(feature != null);

            operationType = UndoElementType.DeleteFeature;
            this.featureIndex = featrueIdx;
            this.feature = feature;
        }
Exemplo n.º 2
0
        public void partDeleted(int featrueIdx, int partIdx, Part part)
        {
            Debug.Assert(part != null);

            operationType = UndoElementType.DeletePolylinePart;
            this.featureIndex = featrueIdx;
            this.partIndex = partIdx;
            this.part = part;
        }
Exemplo n.º 3
0
 public void featureMoved(SymbolFeature actualFeatureMoved, SymbolFeature originalFeatureLocation)
 {
     operationType = UndoElementType.MoveFeature;
     this.feature = actualFeatureMoved;
     this.originalFeature = originalFeatureLocation;
 }
Exemplo n.º 4
0
 public void featureAdded(PolylineFeature feature)
 {
     operationType = UndoElementType.InsertFeature;
     this.featureIndex = feature.FeatureID;
 }
Exemplo n.º 5
0
 public void pointMoved(DPoint actualPointMoved, DPoint originalPointLocation)
 {
     operationType = UndoElementType.MovePolylinePoint;
     this.point = actualPointMoved;
     this.originalPoint = originalPointLocation;
 }