Inheritance: InteractiveControl
Exemple #1
0
 public void HideEditor()
 {
     if (_currentEditorOwner != null)
     {
         _currentEditorOwner.HideEditor(_currentEditor);
         _currentEditor = null;
         _currentEditorOwner = null;
     }
 }
Exemple #2
0
        public void DisplayEditor(Control control, EditableControl owner)
        {
            if (control == null || owner == null)
                throw new ArgumentNullException();

            if (CurrentNode != null)
            {
                HideEditor();
                _currentEditor = control;
                _currentEditorOwner = owner;
                UpdateEditorBounds();

                UpdateView();
                control.Parent = this;
                control.Focus();
                owner.UpdateEditor(control);
            }
        }