CollectionEditor.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. //
  2. // System.ComponentModel.Design.CollectionEditor
  3. //
  4. // Authors:
  5. // Martin Willemoes Hansen ([email protected])
  6. //
  7. // (C) 2003 Martin Willemoes Hansen
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. using System.Windows.Forms;
  30. using System.Windows.Forms.Design;
  31. using System.Drawing.Design;
  32. namespace System.ComponentModel.Design
  33. {
  34. public class CollectionEditor : UITypeEditor
  35. {
  36. protected abstract class CollectionForm : Form
  37. {
  38. [MonoTODO]
  39. public CollectionForm (CollectionEditor editor)
  40. {
  41. }
  42. public object EditValue {
  43. [MonoTODO]
  44. get { throw new NotImplementedException(); }
  45. [MonoTODO]
  46. set { throw new NotImplementedException(); }
  47. }
  48. public override ISite Site {
  49. [MonoTODO]
  50. get { throw new NotImplementedException(); }
  51. [MonoTODO]
  52. set { throw new NotImplementedException(); }
  53. }
  54. protected Type CollectionItemType {
  55. [MonoTODO]
  56. get { throw new NotImplementedException(); }
  57. }
  58. protected Type CollectionType {
  59. [MonoTODO]
  60. get { throw new NotImplementedException(); }
  61. }
  62. protected ITypeDescriptorContext Context {
  63. [MonoTODO]
  64. get { throw new NotImplementedException(); }
  65. }
  66. protected override ImeMode DefaultImeMode {
  67. [MonoTODO]
  68. get { throw new NotImplementedException(); }
  69. }
  70. protected object[] Items {
  71. [MonoTODO]
  72. get { throw new NotImplementedException(); }
  73. [MonoTODO]
  74. set { throw new NotImplementedException(); }
  75. }
  76. protected Type[] NewItemTypes {
  77. [MonoTODO]
  78. get { throw new NotImplementedException(); }
  79. }
  80. [MonoTODO]
  81. protected bool CanRemoveInstance (object value)
  82. {
  83. throw new NotImplementedException();
  84. }
  85. [MonoTODO]
  86. protected virtual bool CanSelectMultipleInstances()
  87. {
  88. throw new NotImplementedException();
  89. }
  90. [MonoTODO]
  91. protected object CreateInstance (Type itemType)
  92. {
  93. throw new NotImplementedException();
  94. }
  95. [MonoTODO]
  96. protected void DestroyInstance (object instance)
  97. {
  98. throw new NotImplementedException();
  99. }
  100. [MonoTODO]
  101. protected virtual void DisplayError (Exception e)
  102. {
  103. throw new NotImplementedException();
  104. }
  105. [MonoTODO]
  106. protected override object GetService (Type serviceType)
  107. {
  108. throw new NotImplementedException();
  109. }
  110. protected abstract void OnEditValueChanged();
  111. [MonoTODO]
  112. protected internal virtual DialogResult ShowEditorDialog (
  113. IWindowsFormsEditorService edSvc)
  114. {
  115. throw new NotImplementedException();
  116. }
  117. [MonoTODO]
  118. ~CollectionForm ()
  119. {
  120. }
  121. }
  122. [MonoTODO]
  123. public CollectionEditor (Type type)
  124. {
  125. }
  126. [MonoTODO]
  127. public override object EditValue (ITypeDescriptorContext context,
  128. IServiceProvider provider,
  129. object value)
  130. {
  131. throw new NotImplementedException();
  132. }
  133. [MonoTODO]
  134. public override UITypeEditorEditStyle GetEditStyle (
  135. ITypeDescriptorContext context)
  136. {
  137. throw new NotImplementedException();
  138. }
  139. protected Type CollectionItemType {
  140. [MonoTODO]
  141. get { throw new NotImplementedException(); }
  142. }
  143. protected Type CollectionType {
  144. [MonoTODO]
  145. get { throw new NotImplementedException(); }
  146. }
  147. protected ITypeDescriptorContext Context {
  148. [MonoTODO]
  149. get { throw new NotImplementedException(); }
  150. }
  151. protected virtual string HelpTopic {
  152. [MonoTODO]
  153. get { throw new NotImplementedException(); }
  154. }
  155. protected Type[] NewItemTypes {
  156. [MonoTODO]
  157. get { throw new NotImplementedException(); }
  158. }
  159. [MonoTODO]
  160. protected virtual bool CanRemoveInstance (object value)
  161. {
  162. throw new NotImplementedException();
  163. }
  164. [MonoTODO]
  165. protected virtual bool CanSelectMultipleInstances()
  166. {
  167. throw new NotImplementedException();
  168. }
  169. [MonoTODO]
  170. protected virtual CollectionForm CreateCollectionForm()
  171. {
  172. throw new NotImplementedException();
  173. }
  174. [MonoTODO]
  175. protected virtual Type CreateCollectionItemType()
  176. {
  177. throw new NotImplementedException();
  178. }
  179. [MonoTODO]
  180. protected virtual object CreateInstance (Type itemType)
  181. {
  182. throw new NotImplementedException();
  183. }
  184. [MonoTODO]
  185. protected virtual Type[] CreateNewItemTypes()
  186. {
  187. throw new NotImplementedException();
  188. }
  189. [MonoTODO]
  190. protected virtual void DestroyInstance (object instance)
  191. {
  192. throw new NotImplementedException();
  193. }
  194. [MonoTODO]
  195. protected virtual object[] GetItems (object editValue)
  196. {
  197. throw new NotImplementedException();
  198. }
  199. [MonoTODO]
  200. protected object GetService (Type serviceType)
  201. {
  202. throw new NotImplementedException();
  203. }
  204. [MonoTODO]
  205. protected virtual object SetItems (object editValue,
  206. object[] value)
  207. {
  208. throw new NotImplementedException();
  209. }
  210. [MonoTODO]
  211. protected virtual void ShowHelp()
  212. {
  213. throw new NotImplementedException();
  214. }
  215. }
  216. }