internal void DisplayEditor(Control editor, EditableControl owner)
		{
			if (editor == null || owner == null || CurrentNode == null)
				throw new ArgumentNullException();

			HideEditor(false);

			CurrentEditor = editor;
			CurrentEditorOwner = owner;
			_editingNode = CurrentNode;

			editor.Validating += EditorValidating;
			UpdateEditorBounds();
			UpdateView();
			editor.Parent = this;
			editor.Focus();
			owner.UpdateEditor(editor);
		}
Exemplo n.º 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);
               }
        }
Exemplo n.º 3
0
        public void DisplayEditor(Control control, EditableControl owner)
        {
            if (control == null || owner == null)
                throw new ArgumentNullException();

            if (CurrentNode != null)
            {
                DisposeEditor();
                EditorContext context = new EditorContext();
                context.Owner = owner;
                context.CurrentNode = CurrentNode;
                context.Editor = control;

                SetEditorBounds(context);

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