private void statisticsOptionsToolStripMenuItem_Click(object sender, EventArgs e) { Debug.Assert(graphic.Series.Count == 1); StatisticsOptionsWindow w = new StatisticsOptionsWindow(); w.ApproximationType = statisticsOptions.ApproximationType; w.ThickeningType = statisticsOptions.ThickeningType; w.ThickeningValue = statisticsOptions.ThickeningValue; if (w.ShowDialog() == DialogResult.OK) { statisticsOptions.ApproximationType = w.ApproximationType; statisticsOptions.ThickeningType = w.ThickeningType; statisticsOptions.ThickeningValue = w.ThickeningValue; InitializeValues(graphic.Series[0]); } }
private void statisticsOptionsToolStripMenuItem_Click(object sender, EventArgs e) { Debug.Assert(graphic.Series.Count == 1); StatisticsOptionsWindow w = new StatisticsOptionsWindow(); w.ApproximationType = statisticsOptions.ApproximationType; w.ThickeningType = statisticsOptions.ThickeningType; w.ThickeningValue = statisticsOptions.ThickeningValue; if (w.ShowDialog() == DialogResult.OK) { statisticsOptions.ApproximationType = w.ApproximationType; statisticsOptions.ThickeningType = w.ThickeningType; statisticsOptions.ThickeningValue = w.ThickeningValue; InitializeValues(graphic.Series[0]); } }