ComponentEditor.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // System.Windows.Forms.Design.ComponentEditorForm.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. // (C) 2002 Ximian, Inc. http://www.ximian.com
  7. //
  8. using System;
  9. using System.ComponentModel;
  10. namespace System.Windows.Forms.Design
  11. {
  12. /// <summary>
  13. /// Summary description for WindowsFormsComponentEditor.
  14. /// </summary>
  15. public abstract class ComponentEditor
  16. {
  17. public ComponentEditor()
  18. {
  19. //
  20. // TODO: Add constructor logic here
  21. //
  22. }
  23. public bool EditComponent(object obj)
  24. {
  25. return false;
  26. }
  27. public abstract bool EditComponent(ITypeDescriptorContext ctx, object obj);
  28. }
  29. public class WindowsFormsComponentEditor : ComponentEditor
  30. {
  31. public WindowsFormsComponentEditor()
  32. {
  33. }
  34. public override bool EditComponent(ITypeDescriptorContext ctx, object obj)
  35. {
  36. return false;
  37. }
  38. public bool EditComponent(object obj, IWin32Window iwnd)
  39. {
  40. return false;
  41. }
  42. public virtual bool EditComponent(ITypeDescriptorContext ctx, object obj, IWin32Window iwnd)
  43. {
  44. return false;
  45. }
  46. }
  47. }