public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { var style = (TrendLine.TrendLineStyle) value; var dlg = new TrendLineTypeDialog { SelectedStyle = style }; return dlg.ShowDialog() == DialogResult.OK ? dlg.SelectedStyle : value; }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { var style = (TrendLine.TrendLineStyle)value; var dlg = new TrendLineTypeDialog { SelectedStyle = style }; return(dlg.ShowDialog() == DialogResult.OK ? dlg.SelectedStyle : value); }