2003-09-04 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / System.Web.Mobile / System.Web.UI.MobileControls / ObjectListCommandEventArgs.cs
1 /**
2  * Project   : Mono
3  * Namespace : System.Web.UI.MobileControls
4  * Class     : ObjectListCommandEventHandler
5  * Author    : Gaurav Vaish
6  *
7  * Copyright : 2003 with Gaurav Vaish, and with
8  *             Ximian Inc
9  */
10
11 using System;
12 using System.Web.UI.WebControls;
13
14 namespace System.Web.UI.MobileControls
15 {
16         public class ObjectListCommandEventArgs : CommandEventArgs
17         {
18                 private ObjectListItem item;
19                 private object         commandSource;
20
21                 public ObjectListCommandEventArgs(ObjectListItem item,
22                                                   object source, CommandEventArgs e)
23                                                   : base(e)
24                 {
25                         this.item          = item;
26                         this.commandSource = source;
27                 }
28
29                 public ObjectListCommandEventArgs(ObjectListItem item,
30                                                   string commandName)
31                                                   : base(commandName, item)
32                 {
33                         this.item          = item;
34                         this.commandSource = null;
35                 }
36
37                 public object CommandSource
38                 {
39                         get
40                         {
41                                 return this.commandSource;
42                         }
43                 }
44
45                 public ObjectListItem ListItem
46                 {
47                         get
48                         {
49                                 return this.item;
50                         }
51                 }
52
53                 protected static readonly string DefaultCommand = "Default";
54         }
55 }