Files
mono/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/Command.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

54 lines
979 B
C#

/**
* Project : Mono
* Namespace : System.Web.UI.MobileControls
* Class : Command
* Author : Gaurav Vaish
*
* Copyright : 2003 with Gaurav Vaish, and with
* Ximian Inc
*/
using System.Web.UI;
namespace System.Web.UI.MobileControls
{
public class Command : TextControl, IPostBackEventHandler
{
private static readonly object ClickEvent = new object();
private static readonly object ItemCommandEvent = new object();
public Command()
{
}
public event EventHandler Click
{
add
{
Events.AddHandler(ClickEvent, value);
}
remove
{
Events.RemoveHandler(ClickEvent, value);
}
}
public event ObjectListCommandEventHandler ItemCommand
{
add
{
Events.AddHandler(ItemCommandEvent, value);
}
remove
{
Events.RemoveHandler(ItemCommandEvent, value);
}
}
void IPostBackEventHandler.RaisePostBackEvent(string eventArgument)
{
throw new NotImplementedException();
}
}
}