public void HideEditor() { if (_currentEditorOwner != null) { _currentEditorOwner.HideEditor(_currentEditor); _currentEditor = null; _currentEditorOwner = null; } }
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); } }