Ejemplo n.º 1
0
        public void HostControl(Control c, string name)
        {
            DocumentForm frm = new DocumentForm(c)
            {
                ShowHint = DockState.Document
            };

            frm.Show(m_dockPanel);
            if (!string.IsNullOrWhiteSpace(name))
            {
                frm.TabText = name;
            }
        }
Ejemplo n.º 2
0
        public void CreatePropertyGrid(bool autohide)
        {
            if (m_property_grid == null || m_property_grid.IsDisposed)
            {
                m_property_grid = new PropertyGrid();
                m_property_grid.ToolbarVisible = false;
                m_property_grid.PropertySort   = PropertySort.Alphabetical;

                DocumentForm frm = new DocumentForm(m_property_grid);
                frm.TabText  = "Object Properties";
                frm.ShowHint = autohide ? DockState.DockRightAutoHide : DockState.DockRight;
                frm.Show(m_dockPanel);
            }
        }
Ejemplo n.º 3
0
        private void FocusOnTextBoxFilter()
        {
            // user hit search so we set the input focus into the first inputbox (which is usually a filter input)
            DocumentForm df = m_dockPanel.ActivePane.ActiveContent as DocumentForm;

            if (df == null)
            {
                return;
            }

            Control[] textBoxFilters = df.Controls.Find("textBoxFilter", true);
            if (textBoxFilters.Length != 1)
            {
                return;
            }

            textBoxFilters[0].Focus();
        }