PropertyValueItem.cs 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // System.Drawing.Design.PropertyValueItem.cs
  3. //
  4. // Authors:
  5. // Alejandro Sánchez Acosta <[email protected]>
  6. // Andreas Nahr ([email protected])
  7. //
  8. // (C) Alejandro Sánchez Acosta
  9. // (C) 2003 Andreas Nahr
  10. //
  11. using System.Drawing;
  12. namespace System.Drawing.Design
  13. {
  14. public class PropertyValueUIItem
  15. {
  16. private Image uiItemImage;
  17. private PropertyValueUIItemInvokeHandler handler;
  18. private string tooltip;
  19. public PropertyValueUIItem (Image uiItemImage,
  20. PropertyValueUIItemInvokeHandler handler, string tooltip)
  21. {
  22. this.uiItemImage = uiItemImage;
  23. this.handler = handler;
  24. this.tooltip = tooltip;
  25. }
  26. public virtual Image Image
  27. {
  28. get
  29. {
  30. return uiItemImage;
  31. }
  32. }
  33. public virtual PropertyValueUIItemInvokeHandler InvokeHandler
  34. {
  35. get
  36. {
  37. return handler;
  38. }
  39. }
  40. public virtual string ToolTip
  41. {
  42. get
  43. {
  44. return tooltip;
  45. }
  46. }
  47. public virtual void Reset()
  48. {
  49. // To be overriden in child classes
  50. }
  51. }
  52. }