2 // System.ComponentModel.Design.CollectionEditor
5 // Martin Willemoes Hansen (mwh@sysrq.dk)
7 // (C) 2003 Martin Willemoes Hansen
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System.Windows.Forms;
32 using System.Windows.Forms.Design;
33 using System.Drawing.Design;
35 namespace System.ComponentModel.Design
37 public class CollectionEditor : UITypeEditor
39 protected abstract class CollectionForm : Form
42 public CollectionForm (CollectionEditor editor)
46 public object EditValue {
48 get { throw new NotImplementedException(); }
51 set { throw new NotImplementedException(); }
54 public override ISite Site {
56 get { throw new NotImplementedException(); }
59 set { throw new NotImplementedException(); }
62 protected Type CollectionItemType {
64 get { throw new NotImplementedException(); }
67 protected Type CollectionType {
69 get { throw new NotImplementedException(); }
72 protected ITypeDescriptorContext Context {
74 get { throw new NotImplementedException(); }
77 protected override ImeMode DefaultImeMode {
79 get { throw new NotImplementedException(); }
82 protected object[] Items {
84 get { throw new NotImplementedException(); }
87 set { throw new NotImplementedException(); }
90 protected Type[] NewItemTypes {
92 get { throw new NotImplementedException(); }
96 protected bool CanRemoveInstance (object value)
98 throw new NotImplementedException();
102 protected virtual bool CanSelectMultipleInstances()
104 throw new NotImplementedException();
108 protected object CreateInstance (Type itemType)
110 throw new NotImplementedException();
114 protected void DestroyInstance (object instance)
116 throw new NotImplementedException();
120 protected virtual void DisplayError (Exception e)
122 throw new NotImplementedException();
126 protected override object GetService (Type serviceType)
128 throw new NotImplementedException();
131 protected abstract void OnEditValueChanged();
134 protected internal virtual DialogResult ShowEditorDialog (
135 IWindowsFormsEditorService edSvc)
137 throw new NotImplementedException();
147 public CollectionEditor (Type type)
152 public override object EditValue (ITypeDescriptorContext context,
153 IServiceProvider provider,
156 throw new NotImplementedException();
160 public override UITypeEditorEditStyle GetEditStyle (
161 ITypeDescriptorContext context)
163 throw new NotImplementedException();
166 protected Type CollectionItemType {
168 get { throw new NotImplementedException(); }
171 protected Type CollectionType {
173 get { throw new NotImplementedException(); }
176 protected ITypeDescriptorContext Context {
178 get { throw new NotImplementedException(); }
181 protected virtual string HelpTopic {
183 get { throw new NotImplementedException(); }
186 protected Type[] NewItemTypes {
188 get { throw new NotImplementedException(); }
192 protected virtual bool CanRemoveInstance (object value)
194 throw new NotImplementedException();
198 protected virtual bool CanSelectMultipleInstances()
200 throw new NotImplementedException();
204 protected virtual CollectionForm CreateCollectionForm()
206 throw new NotImplementedException();
210 protected virtual Type CreateCollectionItemType()
212 throw new NotImplementedException();
216 protected virtual object CreateInstance (Type itemType)
218 throw new NotImplementedException();
222 protected virtual Type[] CreateNewItemTypes()
224 throw new NotImplementedException();
228 protected virtual void DestroyInstance (object instance)
230 throw new NotImplementedException();
234 protected virtual object[] GetItems (object editValue)
236 throw new NotImplementedException();
240 protected object GetService (Type serviceType)
242 throw new NotImplementedException();
246 protected virtual object SetItems (object editValue,
249 throw new NotImplementedException();
253 protected virtual void ShowHelp()
255 throw new NotImplementedException();