Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ObjectListCommandEventArgs.cs « System.Web.UI.MobileControls « System.Web.Mobile « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5e9d873f011c4f0759c5615f0b97c3492d21425e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
 * 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";
	}
}