Пример #1
0
 /// <summary>
 ///     The element on which this editor is built
 /// </summary>
 public void setChangeHandler(HandleTextChange handleTextChange)
 {
     _textChangeHandler = handleTextChange;
     if (_textChangeHandler != null)
     {
         editorTextBox.Enabled = true;
         if (_textChangeHandler.Instance != null)
         {
             Text = _textChangeHandler.IdentifyingMessage + @" " + _textChangeHandler.Instance.FullName;
             editorTextBox.Instance = _textChangeHandler.Instance;
         }
         else
         {
             Text = _textChangeHandler.IdentifyingMessage;
         }
     }
     else
     {
         _textChangeHandler = null;
         Text = EditorName;
         editorTextBox.Text = "";
         editorTextBox.Instance = null;
         editorTextBox.Enabled = false;
     }
     RefreshText();
 }