Пример #1
0
/// <summary>
/// Show axis scale labels
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

        internal void ShowAxisScaleLabelsMenuItem_Click(object sender, EventArgs e)
        {
            ChartView.XAxisMx.ShowLabels     = ChartView.YAxisMx.ShowLabels =
                ChartView.ZAxisMx.ShowLabels = ChartView.ShowAxesScaleLabels =
                    !ChartView.ShowAxesScaleLabels;

            ChartView.ConfigureRenderingControl();
        }
Пример #2
0
/// <summary>
/// Activate zooming if not yet active
/// </summary>

        void ActivateZooming()
        {
            if (!ChartView.XAxisMx.ShowZoomSlider || !ChartView.YAxisMx.ShowZoomSlider)
            {             // turn on zoom sliders if not done
                ChartView.XAxisMx.ShowZoomSlider = true;
                ChartView.YAxisMx.ShowZoomSlider = true;
                ChartView.ConfigureRenderingControl();
            }
        }
Пример #3
0
        /// <summary>
        /// Scroll to new trellis page
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void ScrollBar_Scroll(object sender, ScrollEventArgs e)
        {
            if (ChartPagePanel.Insetup)
            {
                return;
            }
            int newPage = e.NewValue;

            if (ChartView.TrellisPageIndex == newPage)
            {
                return;
            }
            if (Scrolling)
            {
                return;
            }
            Scrolling = true;

            ChartView.TrellisPageIndex = newPage;
            //ClientLog.Message("ScrollBar.Value = " + e.NewValue + ", TrellisPage = " + View.TrellisPage);
            ChartView.ConfigureRenderingControl();
            Scrolling = false;
            return;
        }
Пример #4
0
 private void HideLegendMenuItem_Click(object sender, EventArgs e)
 {
     ChartView.ShowLegend = false;
     ChartView.ConfigureRenderingControl();
 }
Пример #5
0
/// <summary>
/// Show axis titles
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

        internal void ShowAxisTitlesMenuItem_Click(object sender, EventArgs e)
        {
            ChartView.ShowAxesTitles = !ChartView.ShowAxesTitles;
            ChartView.ConfigureRenderingControl();
        }