private void disposeTextInterface() { if (_textInterface != null) { Log.Debug("Disposing old text interface"); _textInterface.EvtTextChanged -= _textInterface_EvtTextChanged; _textInterface.Dispose(); _textInterface = null; setTextInterface(); } }