aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/NumericControl.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-06-23 22:17:49 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-06-23 22:17:49 +0200
commit639be44b59e9f7320473374037a6fa850b4413b6 (patch)
tree62c07ebed69efcc1adfbc571d81a709f7595efc8 /src/GraphicObjects/NumericControl.cs
parent89f3b961d95eea59364719c26ed65f2df26d0b55 (diff)
First working scrollbar with heavy use of binding and events in xml
Diffstat (limited to 'src/GraphicObjects/NumericControl.cs')
-rw-r--r--src/GraphicObjects/NumericControl.cs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/GraphicObjects/NumericControl.cs b/src/GraphicObjects/NumericControl.cs
index 61af27d4..d989f668 100644
--- a/src/GraphicObjects/NumericControl.cs
+++ b/src/GraphicObjects/NumericControl.cs
@@ -4,7 +4,7 @@ using System.ComponentModel;
namespace go
{
- public abstract class NumericControl : TemplatedControl, IValueChange
+ public abstract class NumericControl : TemplatedControl
{
#region CTOR
public NumericControl () : base()
@@ -20,14 +20,7 @@ namespace go
}
#endregion
- #region event handlers
- public EventHandler<ValueChangeEventArgs> ValueChanged;
- public virtual void onValueChanged(object sender, ValueChangeEventArgs e)
- {
- ValueChanged.Raise (sender, e);
- }
- #endregion
#region private fields
double _actualValue, minValue, maxValue, smallStep, bigStep;
@@ -97,7 +90,7 @@ namespace go
else
_actualValue = value;
- onValueChanged(this,new ValueChangeEventArgs("Value", Convert.ToInt32( _actualValue)));
+ NotifyValueChanged("Value", _actualValue);
registerForGraphicUpdate();
}
}