2008-02-05 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / System.Design / System.Web.UI.Design.WebControls / AdRotatorDesigner.cs
old mode 100755 (executable)
new mode 100644 (file)
index 1fa4b93..419b57a
@@ -1,4 +1,9 @@
-
+//
+// System.Web.UI.Design.WebControls.AdRotatorDesigner
+//
+// Author: Duncan Mak (duncan@novell.com)
+//
+// Copyright (C) 2005 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.
 //
-/**
- * Namespace:   System.Web.UI.Design.WebControls
- * Class:       AdRotatorDesigner
- *
- * Author:      Gaurav Vaish
- * Maintainer:  gvaish_mono@lycos.com
- *
- * (C) Gaurav Vaish (2002)
- */
 
-using System;
-using System.IO;
-using System.Web.UI.WebControls;
 using System.Web.UI.Design;
 
-namespace System.Web.UI.Design.WebControls
-{
+namespace System.Web.UI.Design.WebControls {
+
        public class AdRotatorDesigner : ControlDesigner
        {
-               public AdRotatorDesigner() : base()
+               public AdRotatorDesigner ()
+                       : base ()
                {
                }
 
-               public override string GetDesignTimeHtml()
+               public override string GetDesignTimeHtml ()
                {
-                       if(Component != null && Component is AdRotator)
-                       {
-                               AdRotator      toDesign = (AdRotator)Component;
-                               HtmlTextWriter writer   = new HtmlTextWriter(new StringWriter());
-                               HyperLink      link     = new HyperLink();
-                               Image          disp     = new Image();
-
-                               link.ID          = toDesign.ID;
-                               link.NavigateUrl = String.Empty;
-                               link.Target      = toDesign.Target;
-                               link.AccessKey   = toDesign.AccessKey;
-                               link.Enabled     = toDesign.Enabled;
-                               link.TabIndex    = toDesign.TabIndex;
-
-                               disp.ApplyStyle(toDesign.ControlStyle);
-                               disp.ImageUrl      = String.Empty;
-                               disp.AlternateText = toDesign.ID;
-                               disp.ToolTip       = toDesign.ToolTip;
-
-                               link.RenderBeginTag(writer);
-                               link.RenderControl(writer);
-                               link.RenderEndTag(writer);
-
-                               return writer.ToString();
-                       }
-                       return String.Empty;
+                       throw new NotImplementedException ();
                }
        }
-}
+}
\ No newline at end of file