Feature request to help out with DataBindings

I create a custom model object for each control or form and bind that to the UI control instead of using DataSets. One thing that would be a huge timesaver would be to add an option to the Generate Read/Write Property would be for XXXChanged event generation.

For example:

public class MyModel
public event EventHandler NameChanged;
private string name;

public string Name
get { return name; }
set { name = value; if (NameChanged != null) NameChanged(this, EventArgs.Empty); }

The Generator would create the event member if necessary.


1 comment
Comment actions Permalink

I think you can use live template to do it quickly.


Please sign in to leave a comment.