protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _progressBar?.Dispose(); } _disposedValue = true; } }
protected virtual void Dispose(bool disposing) { if (_disposedValue) { return; } if (disposing) { _progressBar?.Dispose(); _progressBar = null; } _disposedValue = true; }