コード例 #1
0
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

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

            RestoreSavedRegion();
            ClearSavedMemory();

            if (e.MayAlterSuspendTool)
            {
                e.SuspendTool = false;
            }
        }
コード例 #3
0
ファイル: TransactedTool!2.cs プロジェクト: ykafia/Paint.Net4
 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);
 }
コード例 #4
0
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

            if (e.MayAlterSuspendTool)
            {
                e.SuspendTool = false;
            }
        }
コード例 #5
0
ファイル: MoveTool.cs プロジェクト: herbqiao/paint.net
        protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e)
        {
            this.dontDrop = true;

            RestoreSavedRegion();
            ClearSavedMemory();

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