Пример #1
0
		public static GeodatabaseFeature Clone(this GeodatabaseFeature feature)
        {
            if (feature == null) return null;

			var clone = new GeodatabaseFeature(feature.Schema);
            clone.CopyFrom(feature.Attributes);
            return clone;
        }
Пример #2
0
        public static GeodatabaseFeature Clone(this GeodatabaseFeature feature)
        {
            if (feature == null)
            {
                return(null);
            }

            var clone = new GeodatabaseFeature(feature.Schema);

            clone.CopyFrom(feature.Attributes);
            return(clone);
        }
        /// <summary>
        /// This will save edit featue changes back to original feature.
        /// </summary>
        private void ApplyChanges()
        {
            if (_editFeature == null || GeodatabaseFeature == null)
            {
                return;
            }

            // copy edit feature back to original feature
            GeodatabaseFeature.CopyFrom(_editFeature.Attributes);
            HasEdits = false;
            HasError = false;
            ((ActionCommand)ApplyCommand).RaiseCanExecute();
            ((ActionCommand)ResetCommand).RaiseCanExecute();

            // Notify user that Apply has been completed.
            var handler = ApplyCompleted;

            if (handler != null)
            {
                handler(this, EventArgs.Empty);
            }
        }