Author: adar
Date: 2007-01-04 04:00:59 -0500 (Thu, 04 Jan 2007)
New Revision: 70457
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonListTest.cs
Log:
RadioButtonList.cs: Implemented properties of IRepeatInfoUser as public virtual
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2007-01-04 09:00:23 UTC (rev 70456)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2007-01-04 09:00:59 UTC (rev 70457)
@@ -1,3 +1,7 @@
+2007-01-4 Adar Wesley <[EMAIL PROTECTED]>
+
+ * RadioButtonList.cs: Implemented properties of IRepeatInfoUser as
public virtual
+
2007-01-03 Marek Habersack <[EMAIL PROTECTED]>
* ObjectDataSourceView.cs: Look for unqualified type also in the
top-level assemblies.
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs
2007-01-04 09:00:23 UTC (rev 70456)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs
2007-01-04 09:00:59 UTC (rev 70457)
@@ -173,53 +173,47 @@
// Interface properties
#if NET_2_0
- [MonoTODO ("Not implemented")]
- protected virtual bool HasFooter
- {
- get {
- throw new NotImplementedException ();
- }
+ protected virtual
+#endif
+ bool HasFooter {
+ get { return false; }
}
- [MonoTODO ("Not implemented")]
- protected virtual bool HasHeader
- {
- get {
- throw new NotImplementedException ();
- }
+#if NET_2_0
+ protected virtual
+#endif
+ bool HasHeader {
+ get { return false; }
}
- [MonoTODO]
- protected virtual bool HasSeparators
- {
- get {
- throw new NotImplementedException ();
- }
+#if NET_2_0
+ protected virtual
+#endif
+ bool HasSeparators {
+ get { return false; }
}
-
- [MonoTODO ("Not implemented")]
- protected virtual int RepeatedItemCount
- {
- get {
- throw new NotImplementedException ();
- }
- }
+
+#if NET_2_0
+ protected virtual
#endif
+ int RepeatedItemCount {
+ get { return Items.Count; }
+ }
bool IRepeatInfoUser.HasFooter {
- get { return false; }
+ get { return HasFooter; }
}
bool IRepeatInfoUser.HasHeader {
- get { return false; }
+ get { return HasHeader; }
}
bool IRepeatInfoUser.HasSeparators {
- get { return false; }
+ get { return HasSeparators; }
}
int IRepeatInfoUser.RepeatedItemCount {
- get { return Items.Count; }
+ get { return RepeatedItemCount; }
}
protected override Style CreateControlStyle ()
@@ -228,10 +222,12 @@
}
#if NET_2_0
- [MonoTODO ("Not implemented")]
+ // MSDN: Searches the current naming container for a server
control
+ // with the specified ID and path offset. The FindControl
method
+ // always returns the RadioButtonList object.
protected override Control FindControl (string id, int
pathOffset)
{
- throw new NotImplementedException ();
+ return this;
}
#endif
@@ -362,3 +358,4 @@
}
+
Modified:
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonListTest.cs
===================================================================
---
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonListTest.cs
2007-01-04 09:00:23 UTC (rev 70456)
+++
trunk/mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonListTest.cs
2007-01-04 09:00:59 UTC (rev 70457)
@@ -319,8 +319,7 @@
#if NET_2_0
[Test]
- [Category ("NotWorking")]
- public void Defaults_NotWorking ()
+ public void Defaults ()
{
PokerRadioButtonList r = new PokerRadioButtonList ();
Assert.AreEqual (0, r.RepeatedItemCount,
"RepeatedItemCount");
@@ -371,7 +370,6 @@
}
[Test]
- [Category ("NotWorking")]
[Category ("NunitWeb")]
public void RaisePostDataChangedEvent_PostBack ()
{
@@ -446,7 +444,6 @@
#endregion
[Test]
- [Category ("NotWorking")]
[Category ("NunitWeb")]
public void LoadPostData () //Just flow and not implementation
detail
{
@@ -496,7 +493,6 @@
}
[Test]
- [Category ("NotWorking")] //Not implemented
public void RepeatedItemCount ()
{
PokerRadioButtonList r = new PokerRadioButtonList ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches