protected override void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { Flush(); } IsEnabled = false; disposed = true; } }