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