aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/NumericControl.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2014-12-22 08:08:36 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2014-12-22 08:08:36 +0100
commite8b13fbea6cab4f01af769a1246c49c588fa2f3e (patch)
tree649f51c9c995c5f0c106ce3c60bc99fd364b1368 /src/GraphicObjects/NumericControl.cs
parent1753010a7b08f29f425356171f78817dc8c6e7f4 (diff)
CompilerServices for EventHandler statements in XML attributes
Improve code formatting debug
Diffstat (limited to 'src/GraphicObjects/NumericControl.cs')
-rw-r--r--src/GraphicObjects/NumericControl.cs28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/GraphicObjects/NumericControl.cs b/src/GraphicObjects/NumericControl.cs
index c8aa48d2..1d4336e2 100644
--- a/src/GraphicObjects/NumericControl.cs
+++ b/src/GraphicObjects/NumericControl.cs
@@ -1,9 +1,12 @@
using System;
+using System.Xml.Serialization;
+using System.ComponentModel;
namespace go
{
public class NumericControl : GraphicObject
{
+ #region CTOR
public NumericControl () : base()
{
}
@@ -15,6 +18,7 @@ namespace go
_smallStep = step;
_bigStep = step * 5;
}
+ #endregion
#region event handlers
public EventHandler<ValueChangeEventArgs> ValueChanged;
@@ -26,10 +30,12 @@ namespace go
}
#endregion
+ #region private fields
double _actualValue, _minValue, _maxValue, _smallStep, _bigStep;
+ #endregion
- [System.Xml.Serialization.XmlAttributeAttribute()]
- [System.ComponentModel.DefaultValue(0)]
+ #region public properties
+ [XmlAttributeAttribute()][DefaultValue(0)]
public virtual double Minimum {
get { return _minValue; }
set {
@@ -42,9 +48,7 @@ namespace go
registerForGraphicUpdate ();
}
}
-
- [System.Xml.Serialization.XmlAttributeAttribute()]
- [System.ComponentModel.DefaultValue(10.0)]
+ [XmlAttributeAttribute()][DefaultValue(10.0)]
public virtual double Maximum
{
get { return _maxValue; }
@@ -58,9 +62,7 @@ namespace go
registerForGraphicUpdate ();
}
}
-
- [System.Xml.Serialization.XmlAttributeAttribute()]
- [System.ComponentModel.DefaultValue(0.5)]
+ [XmlAttributeAttribute()][DefaultValue(0.5)]
public virtual double SmallIncrement
{
get { return _smallStep; }
@@ -74,9 +76,7 @@ namespace go
registerForGraphicUpdate ();
}
}
-
- [System.Xml.Serialization.XmlAttributeAttribute()]
- [System.ComponentModel.DefaultValue(2.0)]
+ [XmlAttributeAttribute()][DefaultValue(2.0)]
public virtual double LargeIncrement
{
get { return _bigStep; }
@@ -90,9 +90,7 @@ namespace go
registerForGraphicUpdate ();
}
}
-
- [System.Xml.Serialization.XmlAttributeAttribute()]
- [System.ComponentModel.DefaultValue(0)]
+ [XmlAttributeAttribute()][DefaultValue(0)]
public double Value
{
get { return _actualValue; }
@@ -114,6 +112,8 @@ namespace go
registerForGraphicUpdate();
}
}
+ #endregion
+
}
}