Example #1
0
        protected override void OnEnded(object sender, EventArgs e)
        {
            ActiveHistoryContext = null;

#if DEBUG
            foreach (var subgraph in m_subGraphs.OrderByDescending(s => s.Level))
            {
                subgraph.Validate();
                ValidateEdges(subgraph);
            }

            foreach (var circuit in m_circuits)
                ValidateEdges(circuit);
#endif
            m_undoingOrRedoing = false;
        }
Example #2
0
        /// <summary>
        /// Performs custom actions on validation Beginning events</summary>
        /// <param name="sender">Validation context</param>
        /// <param name="e">Event args</param>
        protected override void OnBeginning(object sender, EventArgs e)
        {
            ActiveHistoryContext = sender.Cast<HistoryContext>();
            m_undoingOrRedoing = m_historyContexts.Any(h => h.UndoingOrRedoing);
            m_nodesInserted.Clear();
            var referenceValidator = DomNode.Cast<ReferenceValidator>();
            referenceValidator.Suspended = m_undoingOrRedoing;

            MovingCrossContainer = false;
        }
Example #3
0
            public TransactionCommand(
                HistoryContext context,
                string name,
                Operation[] operations,
                SetSelectionCommand setSelectionCommand)

                : base(name)
            {
                m_context = context;
                m_operations = operations;
                m_setSelectionCommand = setSelectionCommand;
            }