private void OnExit(bool timedOut) { if (this._insideModalLoop && !this._quitMessagePosted) { this._quitMessagePosted = true; this._timedOut = timedOut; ModalLoop.Exit(); } }