private _SuppressedEvents(DocumentEditor editor) { this._Editor = editor; this._SuppressEventsValue = this._Editor._SuppressEvents; this._Editor._SuppressEvents = true; }
void IDisposable.Dispose() { this._Editor._SuppressEvents = this._SuppressEventsValue; this._Editor = null; }
public static IDisposable Scope(DocumentEditor editor) { return(new _SuppressedEvents(editor)); }