public void Dispose() { if (this.owner != null) { if (this.owner.ignoreMouseMove > this.oldIgnoreMouseMove) { this.owner.ignoreMouseMove = this.oldIgnoreMouseMove; } this.owner = null; } }
public PushIgnoreMouseMoveScope(PaintDotNet.Tools.Tool owner) { this.owner = owner; this.oldIgnoreMouseMove = this.owner.ignoreMouseMove; this.owner.ignoreMouseMove++; }