2 using System.Collections.Generic;
3 using System.ComponentModel;
5 using System.Web.UI.WebControls;
7 namespace MonoTests.Controls
10 public enum EnumConverterTestValues
16 public class EnumConverterTestValuesConverter : EnumConverter
18 public EnumConverterTestValuesConverter (Type type)
23 public class EnumConverterTextBox : TextBox
25 EnumConverterTestValues values;
27 [TypeConverter (typeof (EnumConverterTestValuesConverter))]
28 public EnumConverterTestValues Values {
29 get { return values; }
30 set { values = value; }
33 public EnumConverterTextBox ()
37 protected override void OnInit (EventArgs e)
40 Text = values.ToString ();