diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs')
-rw-r--r-- | mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs b/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs index eeb0b650f89..5d06791335e 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/CircleHotSpot.cs @@ -45,22 +45,37 @@ namespace System.Web.UI.WebControls get { return "circle"; } } - [DefaultValueAttribute (0)] + [DefaultValueAttribute (0)]
public int Radius { - get { return ViewState.GetInt ("Radius", 0); } - set { ViewState ["Radius"] = value; } + get { + object o = ViewState ["Radius"]; + return o != null ? (int) o : 0; + } + set { + ViewState ["Radius"] = value; + } } - [DefaultValueAttribute (0)] + [DefaultValueAttribute (0)]
public int X { - get { return ViewState.GetInt ("X", 0); } - set { ViewState ["X"] = value; } + get { + object o = ViewState ["X"]; + return o != null ? (int) o : 0; + } + set { + ViewState ["X"] = value; + } } - [DefaultValueAttribute (0)] + [DefaultValueAttribute (0)]
public int Y { - get { return ViewState.GetInt ("Y", 0); } - set { ViewState ["Y"] = value; } + get { + object o = ViewState ["Y"]; + return o != null ? (int) o : 0; + } + set { + ViewState ["Y"] = value; + } } } } |