private void StrokeStyleButton_Click(object sender, EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_Vector.VectorLengthScale.StrokeStyle, out strokeStyleResult))
            {
                m_Vector.VectorLengthScale.StrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #2
0
        private void DownStickLine_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_Stock.DownStrokeStyle, out strokeStyleResult))
            {
                m_Stock.DownStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #3
0
        private void MarkerBorderColor_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_MarkerStyle.BorderStyle, out strokeStyleResult))
            {
                m_MarkerStyle.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void LinePropertiesButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_Point.BorderStyle, out strokeStyleResult))
            {
                m_Point.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void BubbleBorderButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_BubbleSeries.BorderStyle, out strokeStyleResult))
            {
                m_BubbleSeries.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #6
0
        private void RadarLine2Button_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_Radar2.BorderStyle, out strokeStyleResult))
            {
                m_Radar2.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void ErrorStrokeStyleButton_Click(object sender, EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_BarSeries.ErrorStrokeStyle, out strokeStyleResult))
            {
                m_BarSeries.ErrorStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #8
0
        private void HorizontalDropLinesButton_Click(object sender, EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_Point.HorizontalDropLinesStrokeStyle, out strokeStyleResult))
            {
                m_Point.HorizontalDropLinesStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void lineStyleButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_Surface.FrameStrokeStyle, out strokeStyleResult))
            {
                m_Surface.FrameStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void ArrowLineButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_DataLabelStyle.ArrowStrokeStyle, out strokeStyleResult))
            {
                m_DataLabelStyle.ArrowStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void FloorBorderButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(m_Chart.Wall(ChartWallType.Floor).BorderStyle, out strokeStyleResult))
            {
                m_Chart.Wall(ChartWallType.Floor).BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #12
0
        private void MinorTicksStrokeStyleButton_Click(object sender, RoutedEventArgs e)
        {
            NStandardScaleConfigurator scale = (NStandardScaleConfigurator)m_Axis.ScaleConfigurator;
            NStrokeStyle stokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(scale.OuterMinorTickStyle.LineStyle, out stokeStyleResult))
            {
                scale.OuterMinorTickStyle.LineStyle = stokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #13
0
        private void AreaBorderButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;
            NAreaSeries  area = (NAreaSeries)nChartControl1.Charts[0].Series[0];

            if (NStrokeStyleTypeEditor.Edit(area.BorderStyle, out strokeStyleResult))
            {
                area.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #14
0
        private void ConnectorLinesStrokeButton_Click(object sender, EventArgs e)
        {
            NBarSeries   bar = (NBarSeries)nChartControl1.Charts[0].Series[0];
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(bar.ConnectorLineStrokeStyle, out strokeStyleResult))
            {
                bar.ConnectorLineStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #15
0
        private void DownBorderStyleButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;
            NRenkoSeries renko = (NRenkoSeries)nChartControl1.Charts[0].Series[0];

            if (NStrokeStyleTypeEditor.Edit(renko.BorderStyle, out strokeStyleResult))
            {
                renko.DownStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void TextBorderbutton_Click(object sender, System.EventArgs e)
        {
            NLabel       label = nChartControl1.Labels[0];
            NStrokeStyle strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(label.TextStyle.BorderStyle, out strokeStyleResult))
            {
                label.TextStyle.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #17
0
        private void LeftPropsButton_Click(object sender, System.EventArgs e)
        {
            NAxisConstLine cl = (NAxisConstLine)m_Chart.Axis(StandardAxis.PrimaryY).ConstLines[0];
            NStrokeStyle   strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(cl.StrokeStyle, out strokeStyleResult))
            {
                cl.StrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #18
0
        private void Bar3Border_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;
            NStrokeStyle inStrokeStyle = (NStrokeStyle)m_Bar.BorderStyles[3];

            if (NStrokeStyleTypeEditor.Edit(inStrokeStyle, false, out strokeStyleResult))
            {
                m_Bar.BorderStyles[3] = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void GanntConnectLinesStrokeButton_Click(object sender, EventArgs e)
        {
            NFloatBarSeries floatBar = (NFloatBarSeries)nChartControl1.Charts[0].Series[0];
            NStrokeStyle    strokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(floatBar.GanttConnectorLineStrokeStyle, out strokeStyleResult))
            {
                floatBar.GanttConnectorLineStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #20
0
        private void BarBorderButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;
            NSeries      series = (NSeries)nChartControl1.Charts[0].Series[0];

            if (NStrokeStyleTypeEditor.Edit(series.BorderStyle, out strokeStyleResult))
            {
                series.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
        private void RulerStrokeStyleButton_Click(object sender, System.EventArgs e)
        {
            NStandardScaleConfigurator scale = (NStandardScaleConfigurator)m_Axis.ScaleConfigurator;
            NStrokeStyle stokeStyleResult;

            if (NStrokeStyleTypeEditor.Edit(scale.RulerStyle.BorderStyle, out stokeStyleResult))
            {
                scale.RulerStyle.BorderStyle = stokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #22
0
        private void BorderPropsButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle      strokeStyleResult;
            NChart            chart = nChartControl1.Charts[0];
            NSmoothLineSeries line  = (NSmoothLineSeries)chart.Series[0];

            if (NStrokeStyleTypeEditor.Edit(line.BorderStyle, out strokeStyleResult))
            {
                line.BorderStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #23
0
        private void BackgroundStrokeStyleButton_Click(object sender, EventArgs e)
        {
            NStyleSheet styleSheet = (NStyleSheet)document.StyleSheets.GetChildByName(NDR.NameFrameDecoratorBackgroundsStyleSheet);

            NStrokeStyle strokeStyle;

            if (NStrokeStyleTypeEditor.Edit(styleSheet.Style.StrokeStyle, out strokeStyle))
            {
                styleSheet.Style.StrokeStyle = strokeStyle;
                document.SmartRefreshAllViews();
            }
        }
Exemple #24
0
        private void DownStrokeStyleButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle strokeStyleResult;
            NKagiSeries  kagi = (NKagiSeries)nChartControl1.Charts[0].Series[0];


            if (NStrokeStyleTypeEditor.Edit(kagi.DownStrokeStyle, out strokeStyleResult))
            {
                kagi.DownStrokeStyle = strokeStyleResult;
                nChartControl1.Refresh();
            }
        }
Exemple #25
0
        private void minorLinesButton_Click(object sender, System.EventArgs e)
        {
            NStrokeStyle style = view.Grid.MinorLinesStrokeStyle;

            if (!NStrokeStyleTypeEditor.Edit(style, out style))
            {
                return;
            }

            view.Grid.MinorLinesStrokeStyle = style;
            view.SmartRefresh();
        }
Exemple #26
0
        private void UpStrokeStyleButton_Click(object sender, System.EventArgs e)
        {
            if (m_PointAndFigure != null)
            {
                NStrokeStyle strokeStyleResult;

                if (NStrokeStyleTypeEditor.Edit(m_PointAndFigure.UpStrokeStyle, out strokeStyleResult))
                {
                    m_PointAndFigure.UpStrokeStyle = strokeStyleResult;
                    nChartControl1.Refresh();
                }
            }
        }
        private void ContourStrokeStyleButton_Click(object sender, EventArgs e)
        {
            if (m_HeatMap != null)
            {
                NStrokeStyle strokeStyleResult;

                if (NStrokeStyleTypeEditor.Edit(m_HeatMap.ContourStrokeStyle, out strokeStyleResult))
                {
                    m_HeatMap.ContourStrokeStyle = strokeStyleResult;
                    nChartControl1.Refresh();
                }
            }
        }
        private void DownStrokeStyleButton_Click(object sender, System.EventArgs e)
        {
            if (m_ThreeLineBreak != null)
            {
                NStrokeStyle strokeStyleResult;

                if (NStrokeStyleTypeEditor.Edit(m_ThreeLineBreak.DownStrokeStyle, out strokeStyleResult))
                {
                    m_ThreeLineBreak.DownStrokeStyle = strokeStyleResult;
                    nChartControl1.Refresh();
                }
            }
        }
Exemple #29
0
        private void StrokeStyleButton_Click(object sender, EventArgs e)
        {
            NChart chart = nChartControl1.Charts[0];
            NLinearScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NLinearScaleConfigurator;
            NScaleBreak scaleBreak         = (NScaleBreak)scale.ScaleBreaks[0];

            NStrokeStyle result = null;

            if (NStrokeStyleTypeEditor.Edit(scaleBreak.Style.StrokeStyle, out result))
            {
                scaleBreak.Style.StrokeStyle = result;
                nChartControl1.Refresh();
            }
        }
        /// <summary>
        /// Shows the stroke style editor for the specified styleable node
        /// </summary>
        /// <param name="styleable"></param>
        protected void ShowStrokeStyleEditor(INStyleable styleable)
        {
            if (styleable == null)
            {
                return;
            }

            NStrokeStyle strokeStyle    = styleable.ComposeStrokeStyle();
            NStrokeStyle newStrokeStyle = null;

            if (NStrokeStyleTypeEditor.Edit(strokeStyle, out newStrokeStyle))
            {
                NStyle.SetStrokeStyle(styleable, newStrokeStyle);
                document.RefreshAllViews();
            }
        }