mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
146 lines
2.7 KiB
C#
Executable File
146 lines
2.7 KiB
C#
Executable File
/**
|
|
* Namespace: System.Web.UI.WebControls
|
|
* Class: DataList
|
|
*
|
|
* Author: Gaurav Vaish
|
|
* Contact: <[email protected]>, <[email protected]>
|
|
* Status: 20%
|
|
*
|
|
* (C) Gaurav Vaish (2001)
|
|
*/
|
|
|
|
using System;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
|
|
namespace System.Web.UI.WebControls
|
|
{
|
|
public class DataList: BaseDataList, INamingContainer, IRepeatInfoUser
|
|
{
|
|
//
|
|
public const string CancelCommandName = "Cancel";
|
|
public const string DeleteCommandName = "Delete";
|
|
public const string EditCommandName = "Edit";
|
|
public const string SelectCommandName = "Select";
|
|
public const string UpdateCommandName = "Update";
|
|
|
|
//TODO: From where will I update the values of the following ItemStyles?
|
|
private TableItemStyle alternatingItemStyle;
|
|
private TableItemStyle editItemStyle;
|
|
private TableItemStyle footerStyle;
|
|
|
|
private ITemplate alternatingItemTemplate;
|
|
private ITemplate editItemTemplate;
|
|
private ITemplate footerTemplate;
|
|
|
|
private int editItemIndex;
|
|
private bool extractTemplateRows;
|
|
|
|
public DataList()
|
|
{
|
|
alternatingItemStyle = new TableItemStyle();
|
|
editItemStyle = new TableItemStyle();
|
|
footerStyle = new TableItemStyle();
|
|
|
|
alternatingItemTemplate = null;
|
|
editItemTemplate = null;
|
|
|
|
extractTemplateRows = false;
|
|
}
|
|
|
|
public virtual TableItemStyle AlternatingItemStyle
|
|
{
|
|
get
|
|
{
|
|
return alternatingItemStyle;
|
|
}
|
|
}
|
|
|
|
public virtual ITemplate AlternatingItemTemplate
|
|
{
|
|
get
|
|
{
|
|
return alternatingItemTemplate;
|
|
}
|
|
set
|
|
{
|
|
alternatingItemTemplate = value;
|
|
}
|
|
}
|
|
|
|
public virtual int EditItemIndex
|
|
{
|
|
get
|
|
{
|
|
return editItemIndex;
|
|
}
|
|
set
|
|
{
|
|
editItemIndex = value;
|
|
}
|
|
}
|
|
|
|
public virtual TableItemStyle EditItemStyle
|
|
{
|
|
get
|
|
{
|
|
return editItemStyle;
|
|
}
|
|
set
|
|
{
|
|
editItemStyle = value;
|
|
}
|
|
}
|
|
|
|
//TODO: To implement the following functions found in the DataList abstract class
|
|
/*
|
|
* PrepareControlHierarchy()
|
|
* CreateControlHeirarchy(bool)
|
|
*/
|
|
|
|
public virtual ITemplate editItemTemplate
|
|
{
|
|
get
|
|
{
|
|
return editItemTemplate;
|
|
}
|
|
set
|
|
{
|
|
editItemTemplate = value;
|
|
}
|
|
}
|
|
|
|
public virtual bool ExtractTemplateRows
|
|
{
|
|
get
|
|
{
|
|
return extractTemplateRows;
|
|
}
|
|
set
|
|
{
|
|
extractTemplateRows = value;
|
|
}
|
|
}
|
|
|
|
public virtual TableItemStyle FooterStyle
|
|
{
|
|
get
|
|
{
|
|
return footerStyle;
|
|
}
|
|
}
|
|
|
|
public virtual ITemplate FooterTemplate
|
|
{
|
|
get
|
|
{
|
|
return footerTemplate;
|
|
}
|
|
set
|
|
{
|
|
footerTemplate = value;
|
|
}
|
|
}
|
|
}
|
|
}
|