mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
Back from a small vacation due to the exams... * ListItem.cs, ListItemCollection.cs: Completed * WebControl.cs -- Minor changes. * TableStyle.cs, TargetConverter, TemplateColumn -- Fully implemented * ListBox.cs -- Partial Implementation (See ChangeLog for details) * ChangeLog -- Verbose details of the work done * TODO -- Updated list for completed classes. svn path=/trunk/mcs/; revision=2245
56 lines
1.1 KiB
C#
56 lines
1.1 KiB
C#
/**
|
|
* Namespace: System.Web.UI.WebControls
|
|
* Class: TargetConverter
|
|
*
|
|
* Author: Gaurav Vaish
|
|
* Maintainer: [email protected]
|
|
* Contact: <[email protected]>, <[email protected]>
|
|
* Implementation: yes
|
|
* Status: 100%
|
|
*
|
|
* (C) Gaurav Vaish (2002)
|
|
*/
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
|
|
namespace System.Web.UI.WebControls
|
|
{
|
|
public class TargetConverter : StringConverter
|
|
{
|
|
private StandardValuesCollection standardValues;
|
|
private string[] values = {
|
|
"_parent",
|
|
"_self",
|
|
"_blank",
|
|
"_search",
|
|
"_top"
|
|
};
|
|
|
|
public TargetConverter(): base()
|
|
{
|
|
}
|
|
|
|
public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
|
|
{
|
|
if(standardValues == null)
|
|
{
|
|
standardValues = new StandardValuesCollection(values);
|
|
}
|
|
return standardValues;
|
|
}
|
|
|
|
public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|