Merge pull request #2448 from BrzVlad/feature-cprop-opt
[mono.git] / mcs / class / System.Web / System.Web.UI.WebControls / DayRenderEventArgs.cs
index e2bc2400b802d94c454ee517769ad5a26930ef15..6ac506b00c4d9a54ac5202df68bf669b2cd5f93a 100644 (file)
@@ -1,4 +1,9 @@
-
+//
+// System.Web.UI.WebControls.DayRenderEventArgs.cs
+//
+// Author: Duncan Mak (duncan@novell.com)
+//
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-/**\r
- * Namespace: System.Web.UI.WebControls\r
- * Delegate:  DayRenderEventArgs\r
- * \r
- * Author:  Gaurav Vaish\r
- * Maintainer: gvaish@iitk.ac.in\r
- * Contact: <gvaish@iitk.ac.in>\r
- * Implementation: yes\r
- * Status:  100%\r
- * \r
- * (C) Gaurav Vaish (2001)\r
- */\r
-\r
-namespace System.Web.UI.WebControls\r
-{\r
-       public sealed class DayRenderEventArgs\r
-       {\r
-               private TableCell   cell;\r
-               private CalendarDay day;\r
-               \r
-               public DayRenderEventArgs(TableCell cell, CalendarDay day)\r
-               {\r
-                       this.cell = cell;\r
-                       this.day  = day;\r
-               }\r
-               \r
-#if NET_2_0\r
-\r
-               string selectUrl;\r
-               \r
-               public DayRenderEventArgs(TableCell cell, CalendarDay day, string selectUrl)\r
-               {\r
-                       this.cell = cell;\r
-                       this.day  = day;\r
-                       this.selectUrl = selectUrl;\r
-               }\r
-               \r
-               public string SelectUrl {\r
-                       get { return selectUrl; }\r
-               }\r
-               \r
-#endif\r
-               \r
-               public TableCell Cell\r
-               {\r
-                       get\r
-                       {\r
-                               return cell;\r
-                       }\r
-               }\r
-               \r
-               public CalendarDay Day\r
-               {\r
-                       get\r
-                       {\r
-                               return day;\r
-                       }\r
-               }\r
-       }\r
-}\r
+
+namespace System.Web.UI.WebControls
+{
+       public sealed class DayRenderEventArgs
+       {
+               TableCell cell;
+               CalendarDay day;
+               string _selectUrl;
+
+               public DayRenderEventArgs (TableCell cell, CalendarDay day)
+               {
+                       this.cell = cell;
+                       this.day = day;
+               }
+
+               public DayRenderEventArgs (TableCell cell, CalendarDay day, string selectUrl)
+                       : this (cell, day)
+               {
+                       _selectUrl = selectUrl;
+               }
+
+               public TableCell Cell {
+                       get { return cell; }
+               }
+
+               public CalendarDay Day {
+                       get { return day; }
+               }
+
+               public string SelectUrl {
+                       get { return _selectUrl; }
+               }
+       }
+}