Ejemplo n.º 1
0
        /// <summary>
        /// Render the view
        /// </summary>

        public override void ConfigureRenderingControl()
        {
            AssureQueryManagerIsDefined(BaseQuery);
            DialogResult dr = Qm.DataTableManager.CompleteRetrieval();             // be sure we have all data

            if (dr == DialogResult.Cancel)
            {
                return;
            }

            SpotfirePageControl spc = new SpotfirePageControl();             // the Spotfire page control

            spc.InitializeLifetimeService();

            if (Math.Sqrt(4) == 2)
            {
                return;                                // todo
            }
            ////PanelControl panel = Qrc.ResultsDisplayPanel; // the panel we will render in
            ////panel.Controls.Add(spc); // add it to the display panel

            Qrc.SetToolBarTools(spc.ToolPanel, GetZoomPct());             // show the proper tools

            return;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Insert tools into display panel
        /// </summary>

        public override void InsertToolsIntoDisplayPanel()
        {
            if (Qrc == null)
            {
                return;
            }

            Qrc.SetToolBarTools(HtmlPageControl.ToolPanel, BaseQuery.ViewScale);             // show the proper tools and zoom
            return;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Insert tools into display panel
        /// </summary>

        public override void InsertToolsIntoDisplayPanel()
        {
            if (Qrc == null)
            {
                return;
            }

            Qrc.SetToolBarTools(PageControl.ToolPanel, -1);             // show the proper tools
            return;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Insert the rendering control and associated tools into the display panel
        /// </summary>

        public override void InsertRenderingControlIntoDisplayPanel(
            XtraPanel viewPanel)
        {
            viewPanel.Controls.Clear();             // remove anything in there
            viewPanel.Controls.Add(GridPanel);      // add it to the display panel

            InsertToolsIntoDisplayPanel();

            GridPageControl.EditQueryButton.Enabled =
                ViewManager.IsControlContainedInQueriesControl(viewPanel) ||
                ViewManager.IsCustomExitingQueryResultsCallbackDefined(viewPanel);

            if (Qrc == null || BaseQuery == null)
            {
                return;
            }
            Qrc.SetToolBarTools(GridPageControl.ToolPanel, BaseQuery.ViewScale);             // show the proper tools and zoom
            return;
        }