Exemplo n.º 1
0
        /// <summary>Initializes a new instance of the <see cref="UndoRedoManager"/> class.</summary>
        /// <param name="root">The root.</param>
        /// <param name="dispatcher">The dispatcher.</param>
        /// <param name="excludedRootProperties">The excluded root properties.</param>
        public UndoRedoManager(GraphObservableObject root, IDispatcher dispatcher, string[] excludedRootProperties = null)
        {
            _root = root;
            _dispatcher = dispatcher;
            _excludedRootProperties = excludedRootProperties ?? new string[] { };

            root.GraphPropertyChanged += OnGraphPropertyChanged;
        }
Exemplo n.º 2
0
        /// <summary>Initializes a new instance of the <see cref="UndoRedoManager"/> class.</summary>
        /// <param name="root">The root.</param>
        /// <param name="dispatcher">The dispatcher.</param>
        /// <param name="excludedRootProperties">The excluded root properties.</param>
        public UndoRedoManager(GraphObservableObject root, IDispatcher dispatcher, string[] excludedRootProperties = null)
        {
            _root                   = root;
            _dispatcher             = dispatcher;
            _excludedRootProperties = excludedRootProperties ?? new string[] { };

            root.GraphPropertyChanged += OnGraphPropertyChanged;
        }