2
0

ObjectListCommandEventArgs.cs 1.1 KB

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