3
namespace Stetic.Editor {
5
public class Char : Gtk.Entry, IPropertyEditor {
12
public void Initialize (PropertyDescriptor descriptor)
14
if (descriptor.PropertyType != typeof(char))
15
throw new ApplicationException ("Char editor does not support editing values of type " + descriptor.PropertyType);
18
public void AttachObject (object obj)
32
Text = value.ToString ();
37
protected override void OnChanged ()
39
if (ValueChanged != null)
40
ValueChanged (this, EventArgs.Empty);
43
public event EventHandler ValueChanged;