Ver Fonte

2004-07-27 Gonzalo Paniagua Javier <[email protected]>

	* DataList.cs: style.

svn path=/trunk/mcs/; revision=31521
Gonzalo Paniagua Javier há 21 anos atrás
pai
commit
0992d44ba8

+ 23 - 20
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,17 +1,20 @@
+2004-07-27 Gonzalo Paniagua Javier <[email protected]>
+
+	* DataList.cs: style.
+
 2004-07-27 Alon Gazit <[email protected]>
-        * DataList.cs: Replaced foreach statement with for statement, 
+	* DataList.cs: Replaced foreach statement with for statement, 
 	in order to improve performence.
 
 2004-07-27 Alon Gazit <[email protected]>
-        * WebControl.cs: changed RenderBeginTag()to use TagKey instead of 
-        TagName.
-        * Unit.cs : changed GetTypeFromString() and GetStringFromPixel() to use 
-        switch statements in order to improve performance.
-        
+	* WebControl.cs: changed RenderBeginTag()to use TagKey instead of 
+	TagName.
+	* Unit.cs : changed GetTypeFromString() and GetStringFromPixel() to use 
+	switch statements in order to improve performance.
 
 2004-06-10 Alon Gazit <[email protected]>
-        * WebControl.cs: fixed LoadViewState(). 
-        Creates new attributes state bag only when the current is null.
+	* WebControl.cs: fixed LoadViewState(). 
+	Creates new attributes state bag only when the current is null.
 
 2004-06-07  Gonzalo Paniagua Javier <[email protected]>
 
@@ -51,16 +54,16 @@
 	compliance as System.Data is now CLS compliant
 
 2004-05-06 Alon Gazit <[email protected]>
-        * WebControl.cs: fixed LoadViewState() and SaveViewState(). 
-        Before the change the Enabled property wasn't updated when a postback
-        event was raised.
-        * ListControl.cs: fixed SelectedIndex property implementation.
-        Prevents throwing ArgumentOutOfRangeException (that should not be thrown),
-        when the list is empty.     
+	* WebControl.cs: fixed LoadViewState() and SaveViewState(). 
+	Before the change the Enabled property wasn't updated when a postback
+	event was raised.
+	* ListControl.cs: fixed SelectedIndex property implementation.
+	Prevents throwing ArgumentOutOfRangeException (that should not be
+	thrown), when the list is empty.
 
 2004-04-28 Alon Gazit <[email protected]>
-        * WebControl.cs: fixed LoadViewState(). 
-        Always loading the saved attributes collection.
+	* WebControl.cs: fixed LoadViewState(). 
+	Always loading the saved attributes collection.
 
 2004-04-18 Alon Gazit <[email protected]>
 	* Repeater.cs: fixed InstantiateItem() and DataSource property.
@@ -679,8 +682,8 @@
 	bug #48671.
 
 2003-09-19  Gonzalo Paniagua Javier <[email protected]>
-                                                                                
-        * FontInfo.cs: fixed Name property as suggested by Rich Alimi
+
+	* FontInfo.cs: fixed Name property as suggested by Rich Alimi
 	<[email protected]>.
 
 2003-09-14  Gonzalo Paniagua Javier <[email protected]>
@@ -858,8 +861,8 @@
 	* DataGrid.cs: Fixed SaveViewState and type of ItemDataBound.
 
 2003-03-17  George Kodinov <[email protected]>
-        
-        * Unit.cs: Called the correct method to get the Numeric locale for the
+
+	* Unit.cs: Called the correct method to get the Numeric locale for the
 	double conversion
 
 2003-02-15  Gonzalo Paniagua Javier <[email protected]>

+ 3 - 5
mcs/class/System.Web/System.Web.UI.WebControls/DataList.cs

@@ -895,12 +895,10 @@ namespace System.Web.UI.WebControls
 					continue;
 				}
 				
-				if (current.HasChildren)
-				{
+				if (current.HasChildren) {
 					int len = current.Controls.Count;
-					for (int i = 0 ; i < len ; i++)
-					{
-						Control currentCtrl = current.Controls[i];
+					for (int i = 0 ; i < len ; i++) {
+						Control currentCtrl = current.Controls [i];
 						if (!(currentCtrl is Table))
 							continue;