コード例 #1
0
        public virtual void UndoEdit(PropertyChange lastChange, bool inclusive = true)
        {
            if (!IsEditing)
            {
                throw new ArgumentNullException("You cannot cancel the editing of an entity without first starting it.");
            }

            if (_tracker != null)
            {
                _tracker.Undo(lastChange, inclusive);
                OnUndo();
            }
        }