Пример #1
0
 /// <summary>
 /// Disposes off the text interface
 /// </summary>
 private void disposeTextInterface()
 {
     if (_textInterface != null)
     {
         _textInterface.EvtTextChanged -= _textInterface_EvtTextChanged;
         _textInterface.Dispose();
         _textInterface = null;
         setTextInterface();
     }
 }
Пример #2
0
 /// <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();
     }
 }