private void ComboBoxTypeSelectedIndexChanged(object sender, EventArgs e)
{
SeriesChartType type;
switch (this.comboBoxType.SelectedIndex)
{
case 1: type = SeriesChartType.SplineArea; break;
case 2: type = SeriesChartType.Spline; break;
case 3: type = SeriesChartType.StepLine; break;
case 4: type = SeriesChartType.RangeColumn; break;
case 5: type = SeriesChartType.Point; break;
default: type = SeriesChartType.SplineRange; break;
}
Editor.Settings.Charting.Type = type;
if (this._charts != null)
SetChartType(type, ref this._charts);
}