/// <summary> /// Disposes of the resources (other than memory) used by the timer. /// </summary> protected override void Dispose(bool disposing) { if (disposing) { _timerWindow?.StopTimer(); Enabled = false; } _timerWindow = null; base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { if (this.timerWindow != null) { this.timerWindow.StopTimer(); } this.Enabled = false; } this.timerWindow = null; base.Dispose(disposing); }