/// <summary> /// Disposes off the text interface /// </summary> private void disposeTextInterface() { if (_textInterface != null) { _textInterface.EvtTextChanged -= _textInterface_EvtTextChanged; _textInterface.Dispose(); _textInterface = null; setTextInterface(); } }
/// <summary> /// Disposes text interface /// </summary> private void disposeTextInterface() { if (_textInterface != null) { Log.Debug("Disposing old text interface"); _textInterface.EvtTextChanged -= _textInterface_EvtTextChanged; _textInterface.Dispose(); _textInterface = null; setTextInterface(); } }