コード例 #1
0
        public RedrawingDisablerSession(Control control, bool performRefreshOnBlockExit)
        {
            this._sessionId = Guid.NewGuid();
            this._control   = control;
            this._performRefreshOnBlockExit = performRefreshOnBlockExit;

            RedrawingDisabler.DisableEvents(this);                                      //DISABLE
        }
コード例 #2
0
        // 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;
            }
        }