private void drawingOptionsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Debug.Assert(graphic.Series.Count == 1);
     DrawingOptionsWindow w = new DrawingOptionsWindow();
     w.LineColor = drawingOptions.LineColor;
     w.Points = drawingOptions.IsPoints;
     if (w.ShowDialog() == DialogResult.OK)
     {
         drawingOptions.LineColor = w.LineColor;
         drawingOptions.IsPoints = w.Points;
         InitializeDrawingOptions(graphic.Series[0]);
     }
 }
示例#2
0
        private void drawingOptionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Debug.Assert(graphic.Series.Count == 1);
            DrawingOptionsWindow w = new DrawingOptionsWindow();

            w.LineColor = drawingOptions.LineColor;
            w.Points    = drawingOptions.IsPoints;
            if (w.ShowDialog() == DialogResult.OK)
            {
                drawingOptions.LineColor = w.LineColor;
                drawingOptions.IsPoints  = w.Points;
                InitializeDrawingOptions(graphic.Series[0]);
            }
        }