protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e) { this.dontDrop = true; if (e.MayAlterSuspendTool) { e.SuspendTool = false; } }
protected override void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e) { this.dontDrop = true; RestoreSavedRegion(); ClearSavedMemory(); if (e.MayAlterSuspendTool) { e.SuspendTool = false; } }
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 virtual void OnExecutingHistoryMemento(ExecutingHistoryMementoEventArgs e) { }
private void ExecutingHistoryMemento(object sender, ExecutingHistoryMementoEventArgs e) { this.OnExecutingHistoryMemento(e); }