mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* AdRotatorDesigner.cs : GetDesignTimeHtml() - Removed "MonoTODO"
* ButtonDesigner.cs : Completed.
* CalendarAutoFormatDialog.cs
: Initial implementation.
* CalendarDesigner.cs : Initial implementation.
* CheckBoxDesigner.cs : Completed.
* HyperLinkDesigner.cs : Almost completed. See "FIXME".
* LabelDesigner.cs : Completed.
* LinkButtonDesigner.cs : Completed.
* TableCellsCollectionEditor.cs
: Completed
* TableDesigner.cs : Initial implementation.
2002-09-16 Gaurav Vaish <[email protected]>
* TODO : TODO Updates. Found some undocumented
classes.
svn path=/trunk/mcs/; revision=7613
55 lines
1.3 KiB
C#
Executable File
55 lines
1.3 KiB
C#
Executable File
/**
|
|
* Namespace: System.Web.UI.Design.WebControls
|
|
* Class: AdRotatorDesigner
|
|
*
|
|
* Author: Gaurav Vaish
|
|
* Maintainer: [email protected]
|
|
*
|
|
* (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
|
|
{
|
|
public class AdRotatorDesigner : ControlDesigner
|
|
{
|
|
public AdRotatorDesigner() : base()
|
|
{
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|