Esempio n. 1
0
        /// <summary>
        /// Dispose
        /// </summary>

        public new void Dispose()
        {
            ResultsPagePanel = null;

            ResultsPage = null;

            base.Dispose();
            return;
        }
Esempio n. 2
0
        internal void UnselectMarkedRowsMenuItem_Click(object sender, EventArgs e)
        {
            if (ActiveView == null)
            {
                return;
            }

            ActiveView.Dtm.SelectMarked(false);
            ResultsPagePanel.RefreshDetailsOnDemand();
            return;
        }
Esempio n. 3
0
/// <summary>
/// Redraw the filter panel
/// </summary>

        public void RefreshFilterPanel()
        {
            if (ResultsPageControl == null)
            {
                return;
            }
            ResultsPagePanel rpp = ResultsPageControl.ResultsPagePanel;

            if (rpp == null)
            {
                return;
            }
            rpp.RenderFilterPanel();
            return;
        }
Esempio n. 4
0
/// <summary>
/// Configure the results page control for the current page
/// </summary>
/// <param name="qrc"></param>
/// <param name="page"></param>
/// <returns></returns>

        static internal ResultsPageControl Configure(
            QueryResultsControl qrc,
            ResultsPage page)
        {
            qrc.RemoveExistingControlsFromResultsPageControlContainer(); // properly dispose of any existing DevExpress controls

            ResultsPageControl rpc = new ResultsPageControl();           // page control with common tools and display area

            qrc.ResultsPageControl = rpc;                                // link the QueryResultsControl to rpc
            rpc.ResultsPage        = page;                               // set the page that the rpc references

            PanelControl     commonTools = rpc.Tools;                    // the array of common tools
            ResultsPagePanel rpp         = rpc.ResultsPagePanel;         // panel containing the display, filters and DoD panels

            page.ResultsPagePanel = rpp;

            //PanelControl rppc = qrc.ResultsPageControlContainer; // panel that contains the dock panels and rendering controls for the associated page views (1 per dock panel)
            //QueryResultsControl.DisposeOfChildMobiusControls(rppc); // properly dispose of any existing DevExpress controls
            //rppc.Controls.Clear(); // clear the view while building

            PanelControl rppc = qrc.ResultsPageControlContainer; // panel that contains the dock panels and rendering controls for the associated page views (1 per dock panel)

            rpp.Location = new Point(0, 0);                      // make the rpp the same size as rppc before adding it to avoid a resize
            rpp.Size     = rppc.Size;
            rpp.Visible  = false;                                // don't make visible until later
            rpp.Parent   = rppc;                                 // associate to parent before added to parent

            ViewsPanel viewsPanel = rpp.ViewsPanel;              // Views DockPanels and their contained rendering controls go in here

            Query q = qrc.CrvQuery;                              // be sure we have a base QM

            if (q != null)
            {             // be sure the QueryManager is complete
                QueryManager qm = q.QueryManager as QueryManager;

                if (qm == null)                 // allocate query manager if needed
                {
                    qm             = new QueryManager();
                    q.QueryManager = qm;
                    qm.LinkMember(q);
                }

                qm.CompleteInitialization(OutputDest.WinForms); // be sure QueryManager is complete
                qm.LinkMember(qrc);                             // be sure qrc is linked to qm
            }

            ////rpp.SuspendLayout();
            ////rppc.Controls.Add(rpp); // add the results page panel to the page container panel (needed to look up control tree to get Qrc)

            if (page.ShowFilterPanel)
            {
                rpp.RenderFilterPanel();
                rpp.FiltersDockPanel.Visibility = DockVisibility.Visible;
            }
            else
            {
                rpp.FiltersDockPanel.Visibility = DockVisibility.Hidden;
            }

            if (page.ShowDetailsOnDemand)
            {
                rpp.RenderDetailsOnDemandPanel();
                rpp.DodDockPanel.Visibility = DockVisibility.Visible;
            }
            else
            {
                rpp.DodDockPanel.Visibility = DockVisibility.Hidden;
            }

            bool showBeforeLayout = (page.Views.Count == 1 && page.Views[0].ViewType == ResultsViewType.Spotfire);

            if (showBeforeLayout)
            {
                rpp.Visible = true;
                rppc.Controls.Add(rpp);                 // add the results page panel to the page container panel
                rpp.Dock = DockStyle.Fill;
                rpp.ViewsPanel.LayoutAndRenderViews();  // add the data views
            }

            else                                       // layout before showing
            {
                rpp.ViewsPanel.LayoutAndRenderViews(); // add the data views
                rpp.Visible = true;
                rppc.Controls.Add(rpp);                // add the results page panel to the page container panel
            }

            ////rpp.ResumeLayout();

            rpp.ViewsPanel.FocusActiveView();

            return(rpc);
        }