BindingManagerBase.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. //
  2. // System.Windows.Forms.BindingManagerBase.cs
  3. //
  4. // Author:
  5. // stubbed out by Jaak Simm ([email protected])
  6. // Dennis hayes ([email protected])
  7. // (C) 2002 Ximian, Inc
  8. //
  9. using System.ComponentModel;
  10. using System.Collections;
  11. namespace System.Windows.Forms {
  12. //Compact Framework. Everything execpt suspend and resume binding needed for CE.
  13. [MonoTODO]
  14. public abstract class BindingManagerBase {
  15. /// <summary>
  16. /// Manages all Binding objects that are bound to the same data source and data member. This class is abstract.
  17. /// </summary>
  18. // --- Constructor
  19. [MonoTODO]
  20. public BindingManagerBase ()
  21. {
  22. }
  23. //
  24. // --- Fields
  25. protected EventHandler onCurrentChangedHandler;
  26. protected EventHandler onPositionChangedHandler;
  27. //
  28. // --- Public Properties
  29. [MonoTODO]
  30. public BindingsCollection Bindings {
  31. get { throw new NotImplementedException (); }
  32. }
  33. public abstract int Count {
  34. get;
  35. }
  36. public abstract object Current {
  37. get;
  38. }
  39. public abstract int Position {
  40. get;
  41. set;
  42. }
  43. //
  44. // --- Methods
  45. public abstract void AddNew();
  46. public abstract void CancelCurrentEdit();
  47. public abstract void EndCurrentEdit();
  48. public abstract PropertyDescriptorCollection GetItemProperties ();
  49. [MonoTODO]
  50. protected internal virtual PropertyDescriptorCollection GetItemProperties (ArrayList dataSources,ArrayList listAccessors)
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. [MonoTODO]
  55. protected virtual PropertyDescriptorCollection GetItemProperties (Type listType,int offset,ArrayList dataSources,ArrayList listAccessors)
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. //protected abstract string GetListName(ArrayList listAccessors);
  60. protected internal abstract string GetListName(ArrayList listAccessors);
  61. protected internal abstract void OnCurrentChanged(EventArgs e);
  62. [MonoTODO]
  63. protected void PullData()
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. [MonoTODO]
  68. protected void PushData()
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. public abstract void RemoveAt(int index);
  73. public abstract void ResumeBinding();
  74. public abstract void SuspendBinding();
  75. protected abstract void UpdateIsBinding();
  76. //
  77. // --- Public Events
  78. public event EventHandler CurrentChanged;
  79. public event EventHandler PositionChanged;
  80. }
  81. }