BaseDataListDesigner.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. //
  2. // System.Web.UI.Design.WebControls.BaseDataListDesigner.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining
  9. // a copy of this software and associated documentation files (the
  10. // "Software"), to deal in the Software without restriction, including
  11. // without limitation the rights to use, copy, modify, merge, publish,
  12. // distribute, sublicense, and/or sell copies of the Software, and to
  13. // permit persons to whom the Software is furnished to do so, subject to
  14. // the following conditions:
  15. //
  16. // The above copyright notice and this permission notice shall be
  17. // included in all copies or substantial portions of the Software.
  18. //
  19. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  20. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  21. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  22. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  23. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  24. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  25. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. //
  27. using System;
  28. using System.Collections;
  29. using System.ComponentModel;
  30. using System.ComponentModel.Design;
  31. using System.Data;
  32. using System.Windows.Forms.Design;
  33. namespace System.Web.UI.Design.WebControls {
  34. public abstract class BaseDataListDesigner : TemplatedControlDesigner, IDataSourceProvider
  35. {
  36. string data_key_field;
  37. string data_member;
  38. string data_source;
  39. public BaseDataListDesigner ()
  40. : base ()
  41. {
  42. }
  43. public string DataKeyField {
  44. get { return data_key_field; }
  45. set { data_key_field = value; }
  46. }
  47. public string DataMember {
  48. get { return data_member; }
  49. set { data_member = value; }
  50. }
  51. public string DataSource {
  52. get { return data_source; }
  53. set { data_source = value; }
  54. }
  55. public override bool DesignTimeHtmlRequiresLoadComplete {
  56. get { throw new NotImplementedException (); }
  57. }
  58. public override DesignerVerbCollection Verbs {
  59. get { throw new NotImplementedException (); }
  60. }
  61. protected override void Dispose (bool disposing)
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. protected IEnumerable GetDesignTimeDataSource (
  66. int minimum_rows,
  67. out bool dummy_data_source)
  68. {
  69. throw new NotImplementedException ();
  70. }
  71. protected IEnumerable GetDesignTimeDataSource (
  72. IEnumerable selected_data_source,
  73. int minimum_rows,
  74. out bool dummy_data_source)
  75. {
  76. throw new NotImplementedException ();
  77. }
  78. public virtual IEnumerable GetResolvedSelectedDataSource ()
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. public virtual object GetSelectedDataSource ()
  83. {
  84. throw new NotImplementedException ();
  85. }
  86. public override IEnumerable GetTemplateContainerDataSource (string template_name)
  87. {
  88. throw new NotImplementedException ();
  89. }
  90. public override void Initialize (IComponent component)
  91. {
  92. throw new NotImplementedException ();
  93. }
  94. protected internal void InvokePropertyBuilder (int initial_page)
  95. {
  96. throw new NotImplementedException ();
  97. }
  98. protected void OnAutoFormat (object sender, EventArgs e)
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. public override void OnComponentChanged (object sender, ComponentChangedEventArgs e)
  103. {
  104. throw new NotImplementedException ();
  105. }
  106. protected internal virtual void OnDataSourceChanged ()
  107. {
  108. throw new NotImplementedException ();
  109. }
  110. protected void OnPropertyBuilder (object sender, EventArgs e)
  111. {
  112. throw new NotImplementedException ();
  113. }
  114. protected internal void OnStylesChanged ()
  115. {
  116. throw new NotImplementedException ();
  117. }
  118. protected abstract void OnTemplateEditingVerbsChanged ();
  119. protected override void PreFilterProperties (IDictionary properties)
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. }
  124. }