External/Aga.Controls/StringCollectionEditor.cs
changeset 345 0c551e8818e0
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/External/Aga.Controls/StringCollectionEditor.cs	Sun May 27 15:16:19 2012 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +using System;
     1.5 +using System.Collections.Generic;
     1.6 +using System.Text;
     1.7 +using System.ComponentModel.Design;
     1.8 +
     1.9 +namespace Aga.Controls
    1.10 +{
    1.11 +	public class StringCollectionEditor : CollectionEditor
    1.12 +	{
    1.13 +		public StringCollectionEditor(Type type): base(type)
    1.14 +		{
    1.15 +		}
    1.16 +
    1.17 +		protected override Type CreateCollectionItemType()
    1.18 +		{
    1.19 +			return typeof(string);
    1.20 +		}
    1.21 +
    1.22 +		protected override object CreateInstance(Type itemType)
    1.23 +		{
    1.24 +			return "";
    1.25 +		}
    1.26 +	}
    1.27 +}