mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* AdCreatedEventArgs.cs - Comments * BaseCompareValidator.cs - Some undocumented methods * CheckBoxList.cs - Comments * CommandEventArgs, DataGridCommandEventArgs, RepeaterCommandEventArgs -- Completed * ChangeLog - Updated svn path=/trunk/mcs/; revision=1579
109 lines
2.2 KiB
C#
Executable File
109 lines
2.2 KiB
C#
Executable File
/**
|
|
* Namespace: System.Web.UI.WebControls
|
|
* Class: BaseCompareValidator
|
|
*
|
|
* Author: Gaurav Vaish
|
|
* Maintainer: [email protected]
|
|
* Implementation: yes
|
|
* Contact: <[email protected]>
|
|
* Status: 30%
|
|
*
|
|
* (C) Gaurav Vaish (2001)
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Globalization;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
|
|
namespace System.Web.UI.WebControls
|
|
{
|
|
public abstract class BaseCompareValidator: BaseValidator
|
|
{
|
|
protected BaseCompareValidator(): base()
|
|
{
|
|
super();
|
|
}
|
|
|
|
/*[
|
|
WebSysDescriptionAttribute("RangeValidator_Type"),
|
|
WebCategoryAttribute("Behaviour"),
|
|
DefaultValueAttribute(System.Web.UI.WebControls.ValidationDataType)
|
|
]*/
|
|
|
|
public static bool CanConvert(string text, ValidationDataType type)
|
|
{
|
|
//TODO: Implement me
|
|
return false;
|
|
}
|
|
|
|
public ValidationDataType Type
|
|
{
|
|
get
|
|
{
|
|
object o = ViewState["Type"];
|
|
if(o!=null)
|
|
return (ValidationDataType)o;
|
|
return ValidationDataType.String;
|
|
}
|
|
set
|
|
{
|
|
if(!System.Enum.IsDefined(typeof(ValidationDataType), value))
|
|
throw new ArgumentException();
|
|
ViewState["Type"] = value;
|
|
}
|
|
}
|
|
|
|
protected static int CutoffYear
|
|
{
|
|
get
|
|
{
|
|
return DateTimeFormatInfo.CurrentInfo.Calendar.TwoDigitYearMax;
|
|
}
|
|
}
|
|
|
|
protected static int GetFullYear(int shortYear)
|
|
{
|
|
//TODO: Implement me
|
|
}
|
|
|
|
protected override void AddAttributesToRender(HtmlTextWriter writer)
|
|
{
|
|
/*
|
|
ValidationDataType vdt;
|
|
NumberFormatInfo nfi;
|
|
DateTime dt;
|
|
*/
|
|
base.AddAttributesToRender(writer);
|
|
if(base.RenderUplevel)
|
|
{
|
|
// TODO: The Lost World
|
|
}
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
// Undocumented
|
|
protected bool Compare(string leftText, string rightText, ValidationCompareOperator op, ValidationDataType type)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
// Uncodumented
|
|
protected bool Convert(string text, ValidationDataType type, out object convertedValue)
|
|
{
|
|
throw new NotImplementedException();
|
|
convertedValue = null;
|
|
try
|
|
{
|
|
switch(type)
|
|
{
|
|
case
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|