ContextMenu.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //
  2. // System.Windows.Forms.ContextMenu.cs
  3. //
  4. // Author:
  5. // stubbed out by Jaak Simm ([email protected])
  6. // Dennis Hayes ([email protected])
  7. //
  8. // (C) Ximian, Inc., 2002
  9. //
  10. //using System.ComponentModel;
  11. //using System.Collections;
  12. using System.Drawing;
  13. namespace System.Windows.Forms {
  14. /// <summary>
  15. /// Represents a Windows combo box control.
  16. /// ToDo note:
  17. /// - nothing is implemented
  18. /// </summary>
  19. [MonoTODO]
  20. public class ContextMenu : Menu {
  21. // private fields
  22. RightToLeft rightToLeft;
  23. // --- Constructor ---
  24. [MonoTODO]
  25. public ContextMenu() //: base(null)
  26. {
  27. rightToLeft = RightToLeft.Inherit;
  28. }
  29. [MonoTODO]
  30. public ContextMenu(MenuItem[] menuItems) //: base(menuItems)//menu does not have public constructor. Is this a gtk menu?
  31. {
  32. }
  33. // --- Properties ---
  34. public virtual RightToLeft RightToLeft {
  35. get { return rightToLeft; }
  36. set { rightToLeft=value; }
  37. }
  38. [MonoTODO]
  39. public Control SourceControl {
  40. get { throw new NotImplementedException (); }
  41. }
  42. /// --- Methods ---
  43. /// internal .NET framework supporting methods, not stubbed out:
  44. /// - protected internal virtual void OnPopup(EventArgs e);
  45. [MonoTODO]
  46. public void Show(Control control,Point pos)
  47. {
  48. throw new NotImplementedException ();
  49. }
  50. /// events
  51. [MonoTODO]
  52. public event EventHandler Popup {
  53. add {
  54. throw new NotImplementedException ();
  55. }
  56. remove {
  57. throw new NotImplementedException ();
  58. }
  59. }
  60. }
  61. }