Пример #1
0
        private void DeleteInOperation(IFeature featureToDelete, IEditOperationObserver observer)
        {
            observer.StartedOperation();

            featureToDelete.Delete();

            observer.Deleting(featureToDelete);

            observer.IsCompletingOperation = true;
            observer.CompletingOperation();
            observer.IsCompletingOperation = false;
        }
Пример #2
0
        private static void MergeInOperation(IFeature update,
                                             IFeature delete,
                                             IEditOperationObserver observer)
        {
            observer.StartedOperation();

            IGeometry resultGeometry = GeometryUtils.Union(update.Shape, delete.Shape);

            GdbObjectUtils.SetFeatureShape(update, resultGeometry);
            observer.Updating(update);

            delete.Delete();
            observer.Deleting(delete);

            observer.IsCompletingOperation = true;
            observer.CompletingOperation();
            observer.IsCompletingOperation = false;
        }