/// <summary> /// Dispose the current object and free all resources. /// </summary> /// <param name="disposing">Whether unmanaged resource should be disposed.</param> private void Dispose(bool disposing) { if (!IsDisposed) { // Remark IsDisposed = true; if (disposing) { CacheObject.RemoveAutoRefreshControl(); } } }