protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

            if (e.MayAlterSuspendTool)
            {
                e.SuspendTool = false;
            }
        }
Beispiel #2
0
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

            RestoreSavedRegion();
            ClearSavedMemory();

            if (e.MayAlterSuspendTool)
            {
                e.SuspendTool = false;
            }
        }
Beispiel #3
0
 protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
 {
     if ((this.State == TransactedToolState.Drawing) && !this.RequestCancelDrawing())
     {
         throw new InternalErrorException($"Couldn't cancel Drawing state (Tool={base.GetType().Name})");
     }
     if ((this.State == TransactedToolState.Editing) && !this.RequestCancelEditing())
     {
         throw new InternalErrorException($"Couldn't cancel Editing state (Tool={base.GetType().Name})");
     }
     base.OnExecutingHistoryMemento(e);
 }
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

            if (e.MayAlterSuspendTool)
            {
                e.SuspendTool = false;
            }
        }
Beispiel #5
0
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

            RestoreSavedRegion();
            ClearSavedMemory();

            if (e.MayAlterSuspendTool)
            {
                e.SuspendTool = false;
            }
        }
Beispiel #6
0
 protected virtual void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
 {
 }
Beispiel #7
0
 private void ExecutingHistoryMemento(object sender, ExecutingHistoryMementoEventArgs e)
 {
     this.OnExecutingHistoryMemento(e);
 }