2
0

ListCommandEventArgs.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. using System.Web.UI.WebControls;
  11. using System.Web.Mobile;
  12. namespace System.Web.UI.MobileControls
  13. {
  14. public class ListCommandEventArgs : CommandEventArgs
  15. {
  16. protected static readonly string DefaultCommand = "Default";
  17. private object cmdSource;
  18. private MobileListItem listItem;
  19. public ListCommandEventArgs(MobileListItem item,
  20. object commandSource)
  21. :base(DefaultCommand, commandSource)
  22. {
  23. this.listItem = item;
  24. this.cmdSource = commandSource;
  25. }
  26. public ListCommandEventArgs(MobileListItem item,
  27. object commandSource, CommandEventArgs originalArgs)
  28. : base(originalArgs)
  29. {
  30. this.cmdSource = commandSource;
  31. this.listItem = item;
  32. }
  33. public object CommandSource
  34. {
  35. get
  36. {
  37. return this.cmdSource;
  38. }
  39. }
  40. public MobileListItem ListItem
  41. {
  42. get
  43. {
  44. return this.listItem;
  45. }
  46. }
  47. }
  48. }