public override Object ShowDialog(PropertyItem propertyItem, Object propertyValue, IInputElement commandSource) { Curve curveValue = propertyValue as Curve; App.Curves.CurveEditor editor = new App.Curves.CurveEditor(curveValue ?? new Curve()); editor.Text = propertyItem.DisplayName; if (editor.ShowDialog() == DialogResult.OK) { propertyValue = editor.Curve; } return propertyValue; }
public override Object ShowDialog(PropertyItem propertyItem, Object propertyValue, IInputElement commandSource) { Curve curveValue = propertyValue as Curve; App.Curves.CurveEditor editor = new App.Curves.CurveEditor(curveValue ?? new Curve()); editor.Text = propertyItem.DisplayName; if (editor.ShowDialog() == DialogResult.OK) { propertyValue = editor.Curve; } return(propertyValue); }