protected override void ClearCommand() { if (this.cmd != null) { this.cmd.Dispose(); } base._color = Color.FromArgb(this._opacity, base._color); this.cmd = new PenToolCommand(base._color, this.PenWidth); }
public override void Dispose() { base.Dispose(); if (this.cmd != null) { this.cmd.Dispose(); this.cmd = null; } if (this.frm != null) { this.frm.Dispose(); this.frm = null; } }