Beispiel #1
0
		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;
		}
Beispiel #2
0
        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);
        }