Exemplo n.º 1
0
/// <summary>
/// Show/hide legend
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

        internal void ShowLegendMenuItem_Click(object sender, EventArgs e)
        {
            ChartViewMgr view = ChartPagePanel.ChartView;

            view.ShowLegend = !view.ShowLegend;

            SetLegendVisibility();
            return;
        }
Exemplo n.º 2
0
        private DialogResult ShowDialog2(
            ChartViewMgr view,
            string tabName)
        {
            View = view;
            Setup(tabName);
            OriginalConfigureCount = view.ConfigureCount;
            OriginalChartState     = view.SerializeChartProperties();
            OriginalRefreshCount   = view.RefreshCount;

            DialogResult dr = ShowDialog(SessionManager.ActiveForm);

            //view.ChartControl.Series[0].Points
            return(dr);
        }
Exemplo n.º 3
0
        public static DialogResult ShowDialog(
            ChartViewMgr view,
            string tabName)
        {
            if (view.ChartControl == null)
            {
                return(DialogResult.Cancel);
            }

            if (Instance == null)
            {
                Instance = new ChartPropertiesDialog();
            }
            ChartPropertiesDialog i = Instance;

            return(i.ShowDialog2(view, tabName));
        }
Exemplo n.º 4
0
        /// <summary>
        /// Show the dialog
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>

        public static DialogResult ShowDialog(
            ChartViewMgr view)
        {
            return(ShowDialog(view, ""));
        }