DataSourceProvider.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // Permission is hereby granted, free of charge, to any person obtaining
  2. // a copy of this software and associated documentation files (the
  3. // "Software"), to deal in the Software without restriction, including
  4. // without limitation the rights to use, copy, modify, merge, publish,
  5. // distribute, sublicense, and/or sell copies of the Software, and to
  6. // permit persons to whom the Software is furnished to do so, subject to
  7. // the following conditions:
  8. //
  9. // The above copyright notice and this permission notice shall be
  10. // included in all copies or substantial portions of the Software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  13. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  15. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  16. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  17. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  18. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. //
  20. // Copyright (c) 2008 Novell, Inc. (http://www.novell.com)
  21. //
  22. // Authors:
  23. // Chris Toshok ([email protected])
  24. //
  25. using System;
  26. using System.ComponentModel;
  27. using System.Windows.Threading;
  28. namespace System.Windows.Data {
  29. public abstract class DataSourceProvider : INotifyPropertyChanged, ISupportInitialize
  30. {
  31. protected DataSourceProvider ()
  32. {
  33. throw new NotImplementedException ();
  34. }
  35. [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
  36. public object Data {
  37. get { throw new NotImplementedException (); }
  38. }
  39. protected Dispatcher Dispatcher {
  40. get { throw new NotImplementedException (); }
  41. set { throw new NotImplementedException (); }
  42. }
  43. public Exception Error {
  44. get { throw new NotImplementedException (); }
  45. }
  46. [DefaultValue (true)]
  47. public bool IsInitialLoadEnabled {
  48. get { throw new NotImplementedException (); }
  49. set { throw new NotImplementedException (); }
  50. }
  51. protected bool IsRefreshDeferred {
  52. get { throw new NotImplementedException (); }
  53. }
  54. public event EventHandler DataChanged;
  55. protected virtual event PropertyChangedEventHandler PropertyChanged;
  56. event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged {
  57. add { PropertyChanged += value; }
  58. remove { PropertyChanged -= value; }
  59. }
  60. protected virtual void BeginInit ()
  61. {
  62. throw new NotImplementedException ();
  63. }
  64. void ISupportInitialize.BeginInit ()
  65. {
  66. BeginInit ();
  67. }
  68. protected virtual void EndInit ()
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. void ISupportInitialize.EndInit ()
  73. {
  74. EndInit ();
  75. }
  76. protected virtual void BeginQuery ()
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. public virtual IDisposable DeferRefresh ()
  81. {
  82. throw new NotImplementedException ();
  83. }
  84. public void InitialLoad ()
  85. {
  86. throw new NotImplementedException ();
  87. }
  88. protected virtual void OnPropertyChanged (PropertyChangedEventArgs e)
  89. {
  90. throw new NotImplementedException ();
  91. }
  92. protected void OnQueryFinished (object newData)
  93. {
  94. throw new NotImplementedException ();
  95. }
  96. protected virtual void OnQueryFinished (object newData, Exception error, DispatcherOperationCallback completionWork, object callbackArguments)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. public void Refresh ()
  101. {
  102. throw new NotImplementedException ();
  103. }
  104. }
  105. }