public RedrawingDisablerSession(Control control, bool performRefreshOnBlockExit) { this._sessionId = Guid.NewGuid(); this._control = control; this._performRefreshOnBlockExit = performRefreshOnBlockExit; RedrawingDisabler.DisableEvents(this); //DISABLE }
// Protected implementation of Dispose pattern. protected virtual void Dispose(bool disposing) { if (!this._disposed) { RedrawingDisabler.EnableEvents(this); //ENABLE if (disposing) { // Free any managed objects here. // } // Free any unmanaged objects here. // this._disposed = true; } }