Exemplo n.º 1
0
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

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

            RestoreSavedRegion();
            ClearSavedMemory();

            if (e.MayAlterSuspendTool)
            {
                e.SuspendTool = false;
            }
        }
Exemplo n.º 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);
 }
Exemplo n.º 4
0
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

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

            RestoreSavedRegion();
            ClearSavedMemory();

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