示例#1
0
        private void PeriodScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            UpdateExpression();
            CalculateFunction();

            nChartControl1.Refresh();
        }
        private void EdgePercentScrollBar_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NBarSeries bar = (NBarSeries)nChartControl1.Charts[0].Series[0];

            bar.BarEdgePercent = EdgePercentScrollBar.Value;
            nChartControl1.Refresh();
        }
示例#3
0
        private void FloatbarDepthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NFloatBarSeries floatbar = (NFloatBarSeries)nChartControl1.Charts[0].Series[1];

            floatbar.DepthPercent = FloatbarDepthScroll.Value;
            nChartControl1.Refresh();
        }
示例#4
0
 private void GapPercentScrollBar_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
 {
     m_Bar1.GapPercent = GapPercentScrollBar.Value;
     m_Bar2.GapPercent = GapPercentScrollBar.Value;
     m_Bar3.GapPercent = GapPercentScrollBar.Value;
     nChartControl1.Refresh();
 }
示例#5
0
        private void PieEdgeScrollBar_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NPieSeries pie = (NPieSeries)nChartControl1.Charts[0].Series[0];

            pie.PieEdgePercent = EdgePercentScroll.Value;
            nChartControl1.Refresh();
        }
示例#6
0
        private void LineDepthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NLineSeries line = (NLineSeries)nChartControl1.Charts[0].Series[0];

            line.DepthPercent = LineDepthScroll.Value;
            nChartControl1.Refresh();
        }
示例#7
0
        private void ArrowPointerLengthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NPieSeries pie = (NPieSeries)nChartControl1.Charts[0].Series[0];

            pie.DataLabelStyle.ArrowPointerLength = new NLength(ArrowPointerLengthScroll.Value, NGraphicsUnit.Point);
            nChartControl1.Refresh();
        }
示例#8
0
        private void LeadOffLengthScroll_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NPieSeries pie = (NPieSeries)nChartControl1.Charts[0].Series[0];

            pie.LeadOffArrowLength = new NLength(LeadOffLengthScroll.Value, NGraphicsUnit.Point);
            nChartControl1.Refresh();
        }
示例#9
0
        private void InnerRadiusScroll_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NPieChart pie = (NPieChart)nChartControl1.Charts[0];

            pie.InnerRadius = new NLength(InnerRadiusScroll.Value, NRelativeUnit.ParentPercentage);
            nChartControl1.Refresh();
        }
示例#10
0
        private void TotalAngleScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NPieChart pie = (NPieChart)nChartControl1.Charts[0];

            pie.TotalAngle = TotalAngleScroll.Value;
            nChartControl1.Refresh();
        }
示例#11
0
        private void BarWidthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NBarSeries bar = (NBarSeries)nChartControl1.Charts[0].Series[0];

            bar.WidthPercent = BarWidthScroll.Value;
            nChartControl1.Refresh();
        }
示例#12
0
        private void LineSizeScroll_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NLineSeries line = (NLineSeries)nChartControl1.Charts[0].Series[0];

            line.LineSize = new NLength(LineSizeScroll.Value / 40.0f, NRelativeUnit.ParentPercentage);
            nChartControl1.Refresh();
        }
示例#13
0
        private void ZErrorSizeScroll_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NErrorBarSeries series = (NErrorBarSeries)m_Chart.Series[0];

            series.SizeZ = new NLength(ZErrorSizeScroll.Value / 20.0f, NRelativeUnit.ParentPercentage);
            nChartControl1.Refresh();
        }
        private void DepthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NHighLowSeries highLow = (NHighLowSeries)nChartControl1.Charts[0].Series[0];

            highLow.DepthPercent = DepthScroll.Value;
            nChartControl1.Refresh();
        }
        private void CustomValueScroll_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NChart chart = nChartControl1.Charts[0];
            NTriangulatedSurfaceSeries surface = (NTriangulatedSurfaceSeries)chart.Series[0];

            surface.PositionValue = customValueScroll.Value;
            nChartControl1.Refresh();
        }
示例#16
0
        private void WhiskersWidthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NBoxAndWhiskersSeries series = (NBoxAndWhiskersSeries)nChartControl1.Charts[0].Series[0];

            series.WhiskersWidthPercent = WhiskersWidthScroll.Value;

            nChartControl1.Refresh();
        }
示例#17
0
        private void ArrowLengthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NFunnelSeries funnel = (NFunnelSeries)nChartControl1.Charts[0].Series[0];

            funnel.DataLabelStyle.ArrowLength = new NLength(ArrowLengthScroll.Value, NRelativeUnit.ParentPercentage);

            nChartControl1.Refresh();
        }
        private void NeckHeightScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NFunnelSeries funnel = (NFunnelSeries)nChartControl1.Charts[0].Series[0];

            funnel.NeckHeightPercent = NeckHeightScroll.Value;

            nChartControl1.Refresh();
        }
示例#19
0
        private void LeftValue_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NAxisConstLine cl = (NAxisConstLine)m_Chart.Axis(StandardAxis.PrimaryY).ConstLines[0];

            cl.Value = LeftValue.Value;

            nChartControl1.Refresh();
        }
示例#20
0
        private void BottomEndScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NAxisStripe stripe = (NAxisStripe)m_Chart.Axis(StandardAxis.PrimaryX).Stripes[0];

            stripe.To = BottomEndScroll.Value / 20.0;

            nChartControl1.Refresh();
        }
示例#21
0
        private void LeftBeginScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NAxisStripe stripe = (NAxisStripe)m_Chart.Axis(StandardAxis.PrimaryY).Stripes[0];

            stripe.From = LeftBeginScroll.Value / 10.0;

            nChartControl1.Refresh();
        }
示例#22
0
        private void InnerMinorTickLengthScrollBar_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NLinearScaleConfigurator linearScale = (NLinearScaleConfigurator)m_Chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator;

            linearScale.InnerMinorTickStyle.Length = new NLength(InnerMinorTickLengthScrollBar.Value, linearScale.InnerMinorTickStyle.Length.MeasurementUnit);

            nChartControl1.Refresh();
        }
        private void AreaDepthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            m_Area1.DepthPercent = AreaDepthScroll.Value;
            m_Area2.DepthPercent = AreaDepthScroll.Value;
            m_Area3.DepthPercent = AreaDepthScroll.Value;

            nChartControl1.Refresh();
        }
示例#24
0
        private void XOffsetScrollBar_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NStandardScaleConfigurator scaleConfigurator = (NStandardScaleConfigurator)m_Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator;

            scaleConfigurator.Title.Offset = new NLength(XOffsetScrollBar.Value, NGraphicsUnit.Pixel);

            nChartControl1.Refresh();
        }
 private void ArrowLengthScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
 {
     if (nChartControl1 != null)
     {
         m_DataLabelStyle.ArrowLength = new NLength(ArrowLengthScroll.Value, NGraphicsUnit.Point);
         nChartControl1.Refresh();
     }
 }
示例#26
0
        private void hScrollBar1_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            hScrollBar2.Minimum = hScrollBar1.Value + 10;

            Scroll2BeginLabel.Text = hScrollBar2.Minimum.ToString();

            RecalcAxes();
        }
示例#27
0
        private void FunnelGapScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NFunnelSeries funnel = (NFunnelSeries)nChartControl1.Charts[0].Series[0];

            funnel.FunnelPointGap = FunnelGapScroll.Value / 10.0f;

            nChartControl1.Refresh();
        }
示例#28
0
        private void hScrollBar2_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            hScrollBar1.Maximum = hScrollBar2.Value - 10;

            Scroll1EndLabel.Text = hScrollBar1.Maximum.ToString();

            RecalcAxes();
        }
        private void AreaTransparencyScroll_Scroll(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            m_Area1.FillStyle.SetTransparencyPercent(AreaTransparencyScroll.Value);
            m_Area2.FillStyle.SetTransparencyPercent(AreaTransparencyScroll.Value);
            m_Area3.FillStyle.SetTransparencyPercent(AreaTransparencyScroll.Value);

            nChartControl1.Refresh();
        }
示例#30
0
        private void BoxWidthScroll_ValueChanged(object sender, Nevron.UI.WinForm.Controls.ScrollBarEventArgs e)
        {
            NBoxAndWhiskersSeries series = (NBoxAndWhiskersSeries)nChartControl1.Charts[0].Series[0];

            series.BoxWidth = new NLength(BoxWidthScroll.Value / 10.0f, NRelativeUnit.ParentPercentage);

            nChartControl1.Refresh();
        }