Files
mono/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/ObjectListCommandEventArgs.cs
T
Gaurav Vaish 819f5a345f 2003-01-19 Gaurav Vaish <gvaish_mono AT lycos.com>
* Command.cs             : Initial implementation.
	* IObjectListFieldCollection.cs
	                         : F*** the docs. Use only reflection
	                           to get the correct methods / properties.
	* TextControl.cs         : Implemented.
	* ObjectListCommandEventArgs/Handler.cs
	                         : Implemented.
	* MobileListItem.cs      : Initial Implementation.
	* ObjectListItem.cs      : Initial Implementation.
	* ObjectList.cs          : Initial Implementation.
	* TemplateContainer.cs   : Initial Implementation.

svn path=/trunk/mcs/; revision=10714
2003-01-19 18:21:11 +00:00

56 lines
1.1 KiB
C#

/**
* Project : Mono
* Namespace : System.Web.UI.MobileControls
* Class : ObjectListCommandEventHandler
* Author : Gaurav Vaish
*
* Copyright : 2003 with Gaurav Vaish, and with
* Ximian Inc
*/
using System;
using System.Web.UI.WebControls;
namespace System.Web.UI.MobileControls
{
public class ObjectListCommandEventArgs : CommandEventArgs
{
private ObjectListItem item;
private object commandSource;
public ObjectListCommandEventArgs(ObjectListItem item,
object source, CommandEventArgs e)
: base(e)
{
this.item = item;
this.commandSource = source;
}
public ObjectListCommandEventArgs(ObjectListItem item,
string commandName)
: base(commandName, item)
{
this.item = item;
this.commandSource = null;
}
public object CommandSource
{
get
{
return this.commandSource;
}
}
public ObjectListItem ListItem
{
get
{
return this.item;
}
}
protected static readonly string DefaultCommand = "Default";
}
}