Author: igorz
Date: 2006-12-17 12:34:13 -0500 (Sun, 17 Dec 2006)
New Revision: 69612
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
Log:
2006-12-17 Igor Zelmanovich <[EMAIL PROTECTED]>
* Calendar.cs: support DayNameFormat.Shortest
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs
2006-12-17 17:33:13 UTC (rev 69611)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/Calendar.cs
2006-12-17 17:34:13 UTC (rev 69612)
@@ -171,7 +171,7 @@
set {
if (value != DayNameFormat.FirstLetter && value
!= DayNameFormat.FirstTwoLetters &&
- value != DayNameFormat.Full && value !=
DayNameFormat.Short) {
+ value != DayNameFormat.Full && value !=
DayNameFormat.Short && value != DayNameFormat.Shortest) {
throw new ArgumentOutOfRangeException
("The specified day name format is not one of the DayNameFormat values.");
}
@@ -789,6 +789,7 @@
Table table = new Table ();
table.CellSpacing = CellSpacing;
table.CellPadding = CellPadding;
+ table.BorderWidth = 1;
if (ControlStyleCreated)
table.ControlStyle.CopyFrom (ControlStyle);
table.CopyBaseAttributes (this);
@@ -955,6 +956,11 @@
case DayNameFormat.FirstTwoLetters:
dayName = dayName.Substring (0, 2);
break;
+#if NET_2_0
+ case DayNameFormat.Shortest:
+ dayName = dateInfo.GetShortestDayName
(dayOfWeek);
+ break;
+#endif
case DayNameFormat.Full:
break;
case DayNameFormat.Short:
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-12-17 17:33:13 UTC (rev 69611)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-12-17 17:34:13 UTC (rev 69612)
@@ -1,5 +1,9 @@
2006-12-17 Igor Zelmanovich <[EMAIL PROTECTED]>
+ * Calendar.cs: support DayNameFormat.Shortest
+
+2006-12-17 Igor Zelmanovich <[EMAIL PROTECTED]>
+
* HiddenField.cs: implemented
2006-12-17 Igor Zelmanovich <[EMAIL PROTECTED]>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches